(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:
Darkvater
2006-12-01 00:09:13 +00:00
parent 3762f8d9d2
commit fc1a90b663
10 changed files with 4 additions and 23 deletions

View File

@@ -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) {