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

This commit is contained in:
peter1138 2005-12-26 15:41:24 +00:00
parent a857706145
commit 878c868f02
1 changed files with 1 additions and 1 deletions

View File

@ -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);