1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-13 01:29:10 +00:00

(svn r3343) Fix calculation of available rail types where all engines of a particular type are obsolete.

This commit is contained in:
2005-12-26 15:41:24 +00:00
parent a857706145
commit 878c868f02

View File

@@ -615,7 +615,7 @@ byte GetPlayerRailtypes(PlayerID p)
const Engine* e = GetEngine(i); const Engine* e = GetEngine(i);
if (e->type == VEH_Train && if (e->type == VEH_Train &&
HASBIT(e->player_avail, p) && (HASBIT(e->player_avail, p) || e->intro_date <= _date) &&
!(RailVehInfo(i)->flags & RVI_WAGON)) { !(RailVehInfo(i)->flags & RVI_WAGON)) {
assert(e->railtype < RAILTYPE_END); assert(e->railtype < RAILTYPE_END);
SETBIT(rt, e->railtype); SETBIT(rt, e->railtype);