# HG changeset patch # User peter1138 # Date 1138539127 0 # Node ID d2aeb63e3ed6d00fec4118b31ac791d13db4fbf3 # Parent 2c9a2de44e9407a9813245007c73d9d1f1a96c84 (svn r3468) - Fix: Rail type availability should take climate type into account. diff --git a/players.c b/players.c --- a/players.c +++ b/players.c @@ -614,8 +614,9 @@ for (i = 0; i != TOTAL_NUM_ENGINES; 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) && !(RailVehInfo(i)->flags & RVI_WAGON)) { assert(e->railtype < RAILTYPE_END);