summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Nelson <peter1138@openttd.org>2019-01-31 22:18:00 +0000
committerPeterN <peter@fuzzle.org>2019-02-01 07:08:55 +0000
commit21dc725762070c0a91d656d68aea0142467f0573 (patch)
tree41d52c48d03678408f8aa363d1fe08e05ab18125 /src
parent1e5a6765d9553d85e4acfb68999921791b8dd560 (diff)
downloadopenttd-21dc725762070c0a91d656d68aea0142467f0573.tar.xz
Fix: Don't consider engines not in the current climate towards used livery classes.
Diffstat (limited to 'src')
-rw-r--r--src/newgrf.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 3b0af5517..74d29e3e5 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -8591,6 +8591,8 @@ static void FinaliseEngineArray()
}
}
+ if (!HasBit(e->info.climates, _settings_game.game_creation.landscape)) continue;
+
/* When the train does not set property 27 (misc flags), but it
* is overridden by a NewGRF graphically we want to disable the
* flipping possibility. */