Mercurial > hg > openttd
changeset 2862:33c67cbbff90 draft
(svn r3410) - NewGRF fix: Only add a random number of days to an engine's base introduction date if that date is not 0.
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Thu, 19 Jan 2006 18:33:20 +0000 |
parents | 7c3df848aa3f |
children | 1cbe7937cc07 |
files | engine.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/engine.c +++ b/engine.c @@ -210,7 +210,7 @@ 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;