diff options
author | tron <tron@openttd.org> | 2005-07-31 22:28:49 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-07-31 22:28:49 +0000 |
commit | 0ab62e749868fdff187170e0ca76aa5ec85b740f (patch) | |
tree | 52a037ba490af20715d8b4d664e8f734759c9cbe /aircraft_gui.c | |
parent | 8d4f77e45dfc49331225b6bced35830d03f895f3 (diff) | |
download | openttd-0ab62e749868fdff187170e0ca76aa5ec85b740f.tar.xz |
(svn r2772) Simplify the age notice in the vehicle details window
Diffstat (limited to 'aircraft_gui.c')
-rw-r--r-- | aircraft_gui.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/aircraft_gui.c b/aircraft_gui.c index b79a07d4c..45f2a6f19 100644 --- a/aircraft_gui.c +++ b/aircraft_gui.c @@ -333,17 +333,10 @@ static void AircraftDetailsWndProc(Window *w, WindowEvent *e) /* Draw running cost */ { int year = v->age / 366; - StringID str; SetDParam(1, year); - str = STR_0199_YEAR; - if (year != 1) { - str++; - if (v->max_age - 366 < v->age) - str++; - } - SetDParam(0, str); + SetDParam(0, (v->age + 365 < v->max_age) ? STR_AGE : STR_AGE_RED); SetDParam(2, v->max_age / 366); SetDParam(3, _price.aircraft_running * AircraftVehInfo(v->engine_type)->running_cost >> 8); DrawString(2, 15, STR_A00D_AGE_RUNNING_COST_YR, 0); |