(svn r3410) - NewGRF fix: Only add a random number of days to an engine's base introduction date if that date is not 0.

This commit is contained in:
peter1138 2006-01-19 18:33:20 +00:00
parent e78997fdfd
commit 102f9be296

View File

@ -210,7 +210,7 @@ void StartupEngines(void)
e->player_avail = 0;
r = Random();
e->intro_date = GB(r, 0, 9) + ei->base_intro;
e->intro_date = ei->base_intro == 0 ? 0 : GB(r, 0, 9) + ei->base_intro;
if (e->intro_date <= _date) {
e->age = (_date - e->intro_date) >> 5;
e->player_avail = (byte)-1;