From a458faa37e71d138481931afe698c38e490785b6 Mon Sep 17 00:00:00 2001 From: tron Date: Mon, 5 Jun 2006 10:26:38 +0000 Subject: (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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roadveh_gui.c b/roadveh_gui.c index cc4eb7f28..73052620c 100644 --- a/roadveh_gui.c +++ b/roadveh_gui.c @@ -330,7 +330,7 @@ static void RoadVehViewWndProc(Window *w, WindowEvent *e) 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); -- cgit v1.2.3-70-g09d2