(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
This commit is contained in:
bjarni
2006-12-05 22:59:42 +00:00
parent d15a4d7523
commit 666abc0e15
6 changed files with 8 additions and 2 deletions

View File

@@ -566,8 +566,6 @@ void DestroyVehicle(Vehicle *v)
InvalidateWindowData(WC_VEHICLE_DEPOT, v->tile);
}
DeleteDepotHighlightOfVehicle(v);
UpdateVehiclePosHash(v, INVALID_COORD, 0);
v->next_hash = INVALID_VEHICLE;
if (v->orders != NULL) DeleteVehicleOrders(v);