changeset 3960:9b52296d06a4 draft

(svn r5119) -Fix: If a road vehicle is on a road depot tile and stopped doesn't mean it's in the depot. Use the proper test for this
author tron <tron@openttd.org>
date Mon, 05 Jun 2006 10:26:38 +0000
parents a89fed199ad0
children 4a3e1d2e1925
files roadveh_gui.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/roadveh_gui.c
+++ b/roadveh_gui.c
@@ -330,7 +330,7 @@
 			Vehicle *v;
 			uint32 h;
 			v = GetVehicle(w->window_number);
-			h = IsTileDepotType(v->tile, TRANSPORT_ROAD) && (v->vehstatus&VS_STOPPED) ? (1<< 7) : (1 << 11);
+			h = IsRoadVehInDepotStopped(v) ? 1 << 7 : 1 << 11;
 			if (h != w->hidden_state) {
 				w->hidden_state = h;
 				SetWindowDirty(w);