mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r2011) - Fix: [ 1162209 ] Fix OS/2 build (orudge) #2
This commit is contained in:
parent
2c762a67ab
commit
cc99c3e262
|
@ -111,6 +111,7 @@ typedef struct ifreq IFREQ;
|
|||
# include <nerrno.h>
|
||||
# define INADDR_NONE 0xffffffff
|
||||
|
||||
typedef int socklen_t;
|
||||
typedef unsigned long in_addr_t;
|
||||
#endif // OS/2
|
||||
|
||||
|
|
|
@ -634,10 +634,13 @@ static void UpdateStationAcceptance(Station *st, bool show_msg)
|
|||
uint old_acc, new_acc;
|
||||
const RoadStop *cur_rs;
|
||||
int i;
|
||||
Rectangle rect = { MapSizeX(), MapSizeY(), 0, 0 };
|
||||
Rectangle rect;
|
||||
int rad;
|
||||
AcceptedCargo accepts;
|
||||
|
||||
rect.min_x = MapSizeX();
|
||||
rect.min_y = MapSizeY();
|
||||
rect.max_x = rect.max_y = 0;
|
||||
// Don't update acceptance for a buoy
|
||||
if (st->had_vehicle_of_type & HVOT_BUOY)
|
||||
return;
|
||||
|
|
|
@ -2589,10 +2589,9 @@ red_light: {
|
|||
v->progress = 255-10;
|
||||
if (++v->load_unload_time_rem < _patches.wait_twoway_signal * 73) {
|
||||
TileIndex o_tile = gp.new_tile + TileOffsByDir(enterdir);
|
||||
VehicleAtSignalData vasd = {
|
||||
o_tile,
|
||||
dir ^ 4
|
||||
};
|
||||
VehicleAtSignalData vasd;
|
||||
vasd.tile = o_tile;
|
||||
vasd.direction = dir ^ 4;
|
||||
|
||||
/* check if a train is waiting on the other side */
|
||||
if (VehicleFromPos(o_tile, &vasd, CheckVehicleAtSignal) == NULL)
|
||||
|
|
Loading…
Reference in New Issue