(svn r1556) -Fix: Vehicle list updates should now really work

This commit is contained in:
Celestar
2005-01-18 09:35:31 +00:00
parent 4559279686
commit 5bcf3d2bc0
6 changed files with 19 additions and 38 deletions

View File

@@ -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;