(svn r3468) - Fix: Rail type availability should take climate type into account.

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
peter1138 19 years ago
parent 5fed533ce8
commit 2de4331931

@ -614,8 +614,9 @@ byte GetPlayerRailtypes(PlayerID p)
for (i = 0; i != TOTAL_NUM_ENGINES; i++) { for (i = 0; i != TOTAL_NUM_ENGINES; i++) {
const Engine* e = GetEngine(i); const Engine* e = GetEngine(i);
const EngineInfo *ei = &_engine_info[i];
if (e->type == VEH_Train && if (e->type == VEH_Train && HASBIT(ei->climates, _opt.landscape) &&
(HASBIT(e->player_avail, p) || e->intro_date <= _date) && (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);

Loading…
Cancel
Save