1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-09-03 22:59:30 +00:00

(svn r1652) Fix: train and road vehicle lists are now redrawn when vehicles enters/leaves a depot (Hackykid)

fix: the ship status bar was not updated properly after a breakdown if show_speed was off (Hackykid)
This commit is contained in:
bjarni
2005-01-24 22:24:47 +00:00
parent ffb2c4de77
commit e006f89aa3
6 changed files with 23 additions and 15 deletions

View File

@@ -1319,7 +1319,7 @@ static void PlayerTrainsWndProc(Window *w, WindowEvent *e)
DrawVehicleProfitButton(v, x, y + 13);
SetDParam(0, v->unitnumber);
if (IsTrainDepotTile(v->tile))
if (IsTrainDepotTile(v->tile) && (v->vehstatus & VS_HIDDEN))
str = STR_021F;
else
str = v->age > v->max_age - 366 ? STR_00E3 : STR_00E2;