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
commit5bcf3d2bc0620a40728ebb2c0dcbe34fcd6f5084 (patch)
tree467646e7683ed0d5f231399fd0dcc03e2443fb57 /ship_gui.c
parent4559279686fd95be1d78ba3933efb76ffd476458 (diff)
downloadopenttd-5bcf3d2bc0620a40728ebb2c0dcbe34fcd6f5084.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;