summaryrefslogtreecommitdiff
path: root/ship_gui.c
diff options
context:
space:
mode:
authorCelestar <Celestar@openttd.org>2005-01-18 09:35:31 +0000
committerCelestar <Celestar@openttd.org>2005-01-18 09:35:31 +0000
commita003bb0b0e7eab9dbba683c1ef2b2170e0b9985c (patch)
tree467646e7683ed0d5f231399fd0dcc03e2443fb57 /ship_gui.c
parent05d0c2ce89ae0172a3f3604d9a53a1a21972c581 (diff)
downloadopenttd-a003bb0b0e7eab9dbba683c1ef2b2170e0b9985c.tar.xz
(svn r1556) -Fix: Vehicle list updates should now really work
Diffstat (limited to 'ship_gui.c')
-rw-r--r--ship_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ship_gui.c b/ship_gui.c
index 92b6cffd0..829a6ccf3 100644
--- a/ship_gui.c
+++ b/ship_gui.c
@@ -982,7 +982,7 @@ static void PlayerShipsWndProc(Window *w, WindowEvent *e)
DrawVehicleProfitButton(v, x, y + 13);
SetDParam(0, v->unitnumber);
- if (IsShipDepotTile(v->tile))
+ if (IsShipDepotTile(v->tile) && (v->vehstatus & VS_HIDDEN))
str = STR_021F;
else
str = v->age > v->max_age - 366 ? STR_00E3 : STR_00E2;