diff options
author | rubidium <rubidium@openttd.org> | 2006-08-15 15:18:03 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2006-08-15 15:18:03 +0000 |
commit | 0d3ccad29fb035fced3a1a87b7804fde8c4e94b1 (patch) | |
tree | 40cc27f619e175b8c9a80e13e6651c33b92144aa /roadveh_gui.c | |
parent | 8aa76f306db00b81f14b53a736b6e30099258841 (diff) | |
download | openttd-0d3ccad29fb035fced3a1a87b7804fde8c4e94b1.tar.xz |
(svn r5916) -Cleanup: use MIN_YEAR/MAX_YEAR for the year boundaries and BASE_YEAR when comparing _cur_year with a 'full' year.
-Cleanup: replace some magic '1920' values with BASE_YEAR.
Diffstat (limited to 'roadveh_gui.c')
-rw-r--r-- | roadveh_gui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roadveh_gui.c b/roadveh_gui.c index 3607a67d1..3acfce898 100644 --- a/roadveh_gui.c +++ b/roadveh_gui.c @@ -54,7 +54,7 @@ void DrawRoadVehPurchaseInfo(int x, int y, EngineID engine_number) y += 10; /* Design date - Life length */ - SetDParam(0, ymd.year + 1920); + SetDParam(0, BASE_YEAR + ymd.year); SetDParam(1, e->lifelength); DrawString(x, y, STR_PURCHASE_INFO_DESIGNED_LIFE, 0); y += 10; @@ -216,7 +216,7 @@ static void RoadVehDetailsWndProc(Window *w, WindowEvent *e) DrawRoadVehImage(v, 3, 57, INVALID_VEHICLE); SetDParam(0, GetCustomEngineName(v->engine_type)); - SetDParam(1, 1920 + v->build_year); + SetDParam(1, BASE_YEAR + v->build_year); SetDParam(2, v->value); DrawString(34, 57, STR_9011_BUILT_VALUE, 0); |