From 4adc6ba4f853d1b11994948f2653ddb618da36bb Mon Sep 17 00:00:00 2001 From: bjarni Date: Tue, 5 Dec 2006 22:59:42 +0000 Subject: (svn r7386) -Codechange r7385: moved deletion of the vehicle highlight from DeleteVehicle to the sell commands as they are not called as often Also added a return to the window loop prevent looking at the rest of the windows once the right depot window is found --- ship_cmd.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ship_cmd.c') diff --git a/ship_cmd.c b/ship_cmd.c index b81ee457f..c7e6f9c3a 100644 --- a/ship_cmd.c +++ b/ship_cmd.c @@ -920,6 +920,7 @@ int32 CmdSellShip(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) RebuildVehicleLists(); InvalidateWindow(WC_COMPANY, v->owner); DeleteWindowById(WC_VEHICLE_VIEW, v->index); + DeleteDepotHighlightOfVehicle(v); DeleteVehicle(v); if (IsLocalPlayer()) InvalidateWindow(WC_REPLACE_VEHICLE, VEH_Ship); // updates the replace Ship window -- cgit v1.2.3-70-g09d2