diff options
author | Darkvater <Darkvater@openttd.org> | 2006-12-01 00:09:13 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2006-12-01 00:09:13 +0000 |
commit | fc1a90b6630a65c7164eefea0abd0e76a9ce2b98 (patch) | |
tree | 34e228c15bbd169f5c13601b61aa43ae9e3b95ba /ship_cmd.c | |
parent | 3762f8d9d25fb5acf2abbdeec3bb40cb06c991d3 (diff) | |
download | openttd-fc1a90b6630a65c7164eefea0abd0e76a9ce2b98.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 'ship_cmd.c')
-rw-r--r-- | ship_cmd.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/ship_cmd.c b/ship_cmd.c index 691008073..c2ce21e99 100644 --- a/ship_cmd.c +++ b/ship_cmd.c @@ -884,7 +884,6 @@ int32 CmdBuildShip(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()) |