summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-06-05 10:26:38 +0000
committertron <tron@openttd.org>2006-06-05 10:26:38 +0000
commitb0801e4e63667a7c9a74b704c41b26ae26f52b83 (patch)
treea3fff312cdb59aa97d6bdc7482b0f163b18d92de
parenteeeb8172e80eedf59109dced55fe72775340b59d (diff)
downloadopenttd-b0801e4e63667a7c9a74b704c41b26ae26f52b83.tar.xz
(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
-rw-r--r--roadveh_gui.c2
1 files changed, 1 insertions, 1 deletions
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);