(svn r7313) -Codechange: Calling invalidate data on a window will surely warrant a redraw, so call
that after the WE_INVALIDATE_DATA event and remove (some of) the superflouous calls.
This commit is contained in:
@@ -2010,11 +2010,10 @@ static uint32 VehicleEnter_Track(Vehicle *v, TileIndex tile, int x, int y)
|
||||
v->u.rail.track = 0x80,
|
||||
v->vehstatus |= VS_HIDDEN; /* hide it */
|
||||
v->direction = ReverseDir(v->direction);
|
||||
InvalidateWindowData(WC_VEHICLE_DEPOT, v->tile);
|
||||
if (v->next == NULL)
|
||||
VehicleEnterDepot(v);
|
||||
if (v->next == NULL) VehicleEnterDepot(v);
|
||||
v->tile = tile;
|
||||
InvalidateWindow(WC_VEHICLE_DEPOT, tile);
|
||||
|
||||
InvalidateWindowData(WC_VEHICLE_DEPOT, v->tile);
|
||||
return 4;
|
||||
}
|
||||
} else if (fract_coord_leave == fract_coord) {
|
||||
|
Reference in New Issue
Block a user