summaryrefslogtreecommitdiff
path: root/players.c
diff options
context:
space:
mode:
Diffstat (limited to 'players.c')
-rw-r--r--players.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/players.c b/players.c
index 34d458555..5266a0d69 100644
--- a/players.c
+++ b/players.c
@@ -614,8 +614,9 @@ byte GetPlayerRailtypes(PlayerID p)
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);