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

pull/155/head
peter1138 19 years ago
parent 05ed2a8d8c
commit 0975885240

@ -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…
Cancel
Save