summaryrefslogtreecommitdiff
path: root/players.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-02-06 10:05:41 +0000
committerpeter1138 <peter1138@openttd.org>2006-02-06 10:05:41 +0000
commit431b09ab796955d1c54a33fb7a481242c819afd2 (patch)
treec305341837438cfb1e1ac1d9cc54fcc6c50df341 /players.c
parent453b30e387f8d8ab1839d96b0d1f9a8fea841292 (diff)
downloadopenttd-431b09ab796955d1c54a33fb7a481242c819afd2.tar.xz
(svn r3565) - Fix: On loading a game, GetPlayerRailtypes() didn't account for the fact that vehicles are introduced a year after their introduction date. This will also relieve possible (rare) network desyncs.
Diffstat (limited to 'players.c')
-rw-r--r--players.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/players.c b/players.c
index 1348ebc20..5ce773ca4 100644
--- a/players.c
+++ b/players.c
@@ -628,7 +628,7 @@ byte GetPlayerRailtypes(PlayerID p)
const EngineInfo *ei = &_engine_info[i];
if (e->type == VEH_Train && HASBIT(ei->climates, _opt.landscape) &&
- (HASBIT(e->player_avail, p) || e->intro_date <= _date) &&
+ (HASBIT(e->player_avail, p) || _date >= (e->intro_date + 365)) &&
!(RailVehInfo(i)->flags & RVI_WAGON)) {
assert(e->railtype < RAILTYPE_END);
SETBIT(rt, e->railtype);