summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-11-15 20:30:58 +0000
committerrubidium <rubidium@openttd.org>2011-11-15 20:30:58 +0000
commit88aaeb4092e563f9e894608fc27d507d4693f188 (patch)
tree4a9b4a9b1156645d484403a0eadf0ae822bdd6a4 /src
parentd7d032f70a68d221e10859a61d1154e49c8866d2 (diff)
downloadopenttd-88aaeb4092e563f9e894608fc27d507d4693f188.tar.xz
(svn r23232) -Change: move the "default" overrides out of the baseset in order to ensure they all use the same values
Diffstat (limited to 'src')
-rw-r--r--src/newgrf.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 2afd74686..d8950fa39 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -8927,6 +8927,17 @@ void LoadNewGRF(uint load_index, uint file_index)
if (c->status == GCS_ACTIVATED) c->status = GCS_INITIALISED;
}
+ if (stage == GLS_RESERVE) {
+ static const uint32 overrides[][2] = {
+ { 0x44442202, 0x44440111 }, // UKRS addons modifies UKRS
+ { 0x6D620402, 0x6D620401 }, // DBSetXL ECS extension modifies DBSetXL
+ { 0x4D656f20, 0x4D656F17 }, // LV4cut modifies LV4
+ };
+ for (size_t i = 0; i < lengthof(overrides); i++) {
+ SetNewGRFOverride(BSWAP32(overrides[i][0]), BSWAP32(overrides[i][1]));
+ }
+ }
+
uint slot = file_index;
_cur.stage = stage;