summaryrefslogtreecommitdiff
path: root/currency.c
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2006-08-17 20:22:35 +0000
committerrubidium <rubidium@openttd.org>2006-08-17 20:22:35 +0000
commit7cfd3eb61834ee3d4c5037b0a3ffc71089b9564a (patch)
tree0e09fbecef792005a3c390649f7cf774c8c43325 /currency.c
parenta178d2600b02a2c3091d1e185f887d371f4a1feb (diff)
downloadopenttd-7cfd3eb61834ee3d4c5037b0a3ffc71089b9564a.tar.xz
(svn r5934) -Cleanup: forgot some conversions to Year and to Date
-Cleanup: use _cur_year instead of _date for some (year based) comparisons -Cleanup: remove a magic number in favour of another (less) magic number
Diffstat (limited to 'currency.c')
-rw-r--r--currency.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/currency.c b/currency.c
index 2954a9973..997303245 100644
--- a/currency.c
+++ b/currency.c
@@ -79,7 +79,7 @@ uint GetMaskOfAllowedCurrencies(void)
uint i;
for (i = 0; i != lengthof(_currency_specs); i++) {
- uint16 to_euro = _currency_specs[i].to_euro;
+ Year to_euro = _currency_specs[i].to_euro;
if (to_euro != CF_NOEURO && to_euro != CF_ISEURO && _cur_year >= to_euro) continue;
if (to_euro == CF_ISEURO && _cur_year < 2000) continue;