diff options
author | peter1138 <peter1138@openttd.org> | 2006-01-19 18:33:20 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-01-19 18:33:20 +0000 |
commit | 102f9be296861b1300b085f7f6fcc52f6446a302 (patch) | |
tree | 9f4a1562de54533da800c670fc64a2272f33641c | |
parent | e78997fdfd963ca9b382a949d71056ccaef8f0eb (diff) | |
download | openttd-102f9be296861b1300b085f7f6fcc52f6446a302.tar.xz |
(svn r3410) - NewGRF fix: Only add a random number of days to an engine's base introduction date if that date is not 0.
-rw-r--r-- | engine.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |