summaryrefslogtreecommitdiff
path: root/vehicle.c
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2006-12-05 22:59:42 +0000
committerbjarni <bjarni@openttd.org>2006-12-05 22:59:42 +0000
commit4adc6ba4f853d1b11994948f2653ddb618da36bb (patch)
tree7833c716fc42b444f89413faa48f18b9ce21ecea /vehicle.c
parent686a0d7750405d10088a23732f33359728039aa5 (diff)
downloadopenttd-4adc6ba4f853d1b11994948f2653ddb618da36bb.tar.xz
(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
Diffstat (limited to 'vehicle.c')
-rw-r--r--vehicle.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/vehicle.c b/vehicle.c
index 0cf909efb..9c657483c 100644
--- a/vehicle.c
+++ b/vehicle.c
@@ -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);