(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
authortron
Mon, 05 Jun 2006 10:26:38 +0000
changeset 3960 67dadc46ca74
parent 3959 48f178431701
child 3961 9868b766fda7
(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
roadveh_gui.c
--- a/roadveh_gui.c	Mon Jun 05 10:23:18 2006 +0000
+++ b/roadveh_gui.c	Mon Jun 05 10:26:38 2006 +0000
@@ -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);