diff options
author | rubidium <rubidium@openttd.org> | 2006-08-17 20:22:35 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2006-08-17 20:22:35 +0000 |
commit | 7cfd3eb61834ee3d4c5037b0a3ffc71089b9564a (patch) | |
tree | 0e09fbecef792005a3c390649f7cf774c8c43325 /industry_cmd.c | |
parent | a178d2600b02a2c3091d1e185f887d371f4a1feb (diff) | |
download | openttd-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 'industry_cmd.c')
-rw-r--r-- | industry_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/industry_cmd.c b/industry_cmd.c index 6fce8dc8f..a678ee703 100644 --- a/industry_cmd.c +++ b/industry_cmd.c @@ -1647,8 +1647,8 @@ static void MaybeNewIndustry(uint32 r) type = _new_industry_rand[_opt.landscape][GB(r, 16, 5)]; - if (type == IT_OIL_WELL && _date > 10958) return; - if (type == IT_OIL_RIG && _date < 14610) return; + if (type == IT_OIL_WELL && _cur_year > 1950) return; + if (type == IT_OIL_RIG && _cur_year < 1960) return; j = 2000; for (;;) { |