summaryrefslogtreecommitdiff
path: root/players.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2005-12-26 15:41:24 +0000
committerpeter1138 <peter1138@openttd.org>2005-12-26 15:41:24 +0000
commit0975885240278002e8f5b3123ac76561110534f2 (patch)
treece1da944271fbeb4de7867d15a6fb7381970f039 /players.c
parent05ed2a8d8c4b577ed7a737708c32a664f941c7fd (diff)
downloadopenttd-0975885240278002e8f5b3123ac76561110534f2.tar.xz
(svn r3343) Fix calculation of available rail types where all engines of a particular type are obsolete.
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 307b8db22..0db3c7f44 100644
--- a/players.c
+++ b/players.c
@@ -615,7 +615,7 @@ byte GetPlayerRailtypes(PlayerID p)
const Engine* e = GetEngine(i);
if (e->type == VEH_Train &&
- HASBIT(e->player_avail, p) &&
+ (HASBIT(e->player_avail, p) || e->intro_date <= _date) &&
!(RailVehInfo(i)->flags & RVI_WAGON)) {
assert(e->railtype < RAILTYPE_END);
SETBIT(rt, e->railtype);