mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(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:
parent
e78997fdfd
commit
102f9be296
2
engine.c
2
engine.c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user