From 0ab62e749868fdff187170e0ca76aa5ec85b740f Mon Sep 17 00:00:00 2001 From: tron Date: Sun, 31 Jul 2005 22:28:49 +0000 Subject: (svn r2772) Simplify the age notice in the vehicle details window --- roadveh_gui.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'roadveh_gui.c') diff --git a/roadveh_gui.c b/roadveh_gui.c index 99541604a..20944302f 100644 --- a/roadveh_gui.c +++ b/roadveh_gui.c @@ -92,17 +92,10 @@ static void RoadVehDetailsWndProc(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, RoadVehInfo(v->engine_type)->running_cost * _price.roadveh_running >> 8); DrawString(2, 15, STR_900D_AGE_RUNNING_COST_YR, 0); -- cgit v1.2.3-54-g00ecf