summaryrefslogtreecommitdiff
path: root/train_gui.c
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2006-08-15 15:18:03 +0000
committerrubidium <rubidium@openttd.org>2006-08-15 15:18:03 +0000
commitc55962f8a2304535f2077f9d5d6dcdb11bf6323e (patch)
tree40cc27f619e175b8c9a80e13e6651c33b92144aa /train_gui.c
parentdc54e608e36145deab60dea2cbe08517b28e54c0 (diff)
downloadopenttd-c55962f8a2304535f2077f9d5d6dcdb11bf6323e.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 'train_gui.c')
-rw-r--r--train_gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/train_gui.c b/train_gui.c
index fc1703562..b00d31185 100644
--- a/train_gui.c
+++ b/train_gui.c
@@ -73,7 +73,7 @@ void DrawTrainEnginePurchaseInfo(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;
@@ -1115,7 +1115,7 @@ static void TrainDetailsInfoTab(const Vehicle *v, int x, int y)
if (!(rvi->flags & RVI_WAGON)) {
SetDParam(0, GetCustomEngineName(v->engine_type));
- SetDParam(1, v->build_year + 1920);
+ SetDParam(1, BASE_YEAR + v->build_year);
SetDParam(2, v->value);
DrawString(x, y, STR_882C_BUILT_VALUE, 0x10);
} else {