summaryrefslogtreecommitdiff
path: root/settings_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 /settings_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 'settings_gui.c')
-rw-r--r--settings_gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/settings_gui.c b/settings_gui.c
index 4a98d28fa..6de19cc76 100644
--- a/settings_gui.c
+++ b/settings_gui.c
@@ -1185,7 +1185,7 @@ static void CustCurrencyWndProc(Window *w, WindowEvent *e)
WP(w,def_d).data_1 = (1 << (line * 2 + 0));
} else {
_custom_currency.to_euro =
- clamp(_custom_currency.to_euro + 1, 2000, MAX_YEAR_END_REAL);
+ clamp(_custom_currency.to_euro + 1, 2000, MAX_YEAR);
WP(w,def_d).data_1 = (1 << (line * 2 + 1));
}
} else { // enter text
@@ -1237,7 +1237,7 @@ static void CustCurrencyWndProc(Window *w, WindowEvent *e)
case 4: /* Year to switch to euro */
val = atoi(b);
- val = clamp(val, 1999, MAX_YEAR_END_REAL);
+ val = clamp(val, 1999, MAX_YEAR);
if (val == 1999) val = 0;
_custom_currency.to_euro = val;
break;