mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r3343) Fix calculation of available rail types where all engines of a particular type are obsolete.
This commit is contained in:
parent
a857706145
commit
878c868f02
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user