summaryrefslogtreecommitdiff
path: root/roadveh_cmd.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-12-01 00:09:13 +0000
committerDarkvater <darkvater@openttd.org>2006-12-01 00:09:13 +0000
commit04f99447469d335af52702aad35cc2d3f705c06d (patch)
tree34e228c15bbd169f5c13601b61aa43ae9e3b95ba /roadveh_cmd.c
parent9b4d3ff4b88eb6d655bf31afc28a6afa849f07f7 (diff)
downloadopenttd-04f99447469d335af52702aad35cc2d3f705c06d.tar.xz
(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.
Diffstat (limited to 'roadveh_cmd.c')
-rw-r--r--roadveh_cmd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/roadveh_cmd.c b/roadveh_cmd.c
index 04959beee..0777dec28 100644
--- a/roadveh_cmd.c
+++ b/roadveh_cmd.c
@@ -195,7 +195,6 @@ int32 CmdBuildRoadVeh(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
GetPlayer(_current_player)->num_engines[p1]++;
InvalidateWindowData(WC_VEHICLE_DEPOT, v->tile);
- InvalidateWindow(WC_VEHICLE_DEPOT, v->tile);
RebuildVehicleLists();
InvalidateWindow(WC_COMPANY, v->owner);
if (IsLocalPlayer())
@@ -1307,7 +1306,6 @@ static void RoadVehController(Vehicle *v)
SetRoadVehPosition(v,x,y);
InvalidateWindowData(WC_VEHICLE_DEPOT, v->tile);
- InvalidateWindow(WC_VEHICLE_DEPOT, v->tile);
return;
}