(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
This commit is contained in:
rubidium
2006-08-17 20:22:35 +00:00
parent a178d2600b
commit 7cfd3eb618
8 changed files with 13 additions and 18 deletions

View File

@@ -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 (;;) {