From 04f99447469d335af52702aad35cc2d3f705c06d Mon Sep 17 00:00:00 2001 From: Darkvater Date: Fri, 1 Dec 2006 00:09:13 +0000 Subject: (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. --- ship_cmd.c | 1 - 1 file changed, 1 deletion(-) (limited to 'ship_cmd.c') 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()) -- cgit v1.2.3-70-g09d2