summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-01-02 22:18:05 +0000
committerrubidium <rubidium@openttd.org>2009-01-02 22:18:05 +0000
commitac74654d8fcc26b85741179c0ad34725f1a82d89 (patch)
tree90ec6f24c4a608861a8e35ad80437cc0bf78fb88 /src
parentc331426ce0fa1d81917555dc605d882780d1a91e (diff)
downloadopenttd-ac74654d8fcc26b85741179c0ad34725f1a82d89.tar.xz
(svn r14788) -Fix [FS#2489]: some TTDPatch flags were wrong (Swallow)
Diffstat (limited to 'src')
-rw-r--r--src/newgrf.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 91ed1a94a..13415f97b 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -5258,8 +5258,8 @@ static void InitializeGRFSpecial()
_ttdpatch_flags[3] = (0 << 0x00) // newcargodistribution
| (1 << 0x01) // windowsnap
- | (0 << 0x02) // townbuildnoroad
- | (0 << 0x03) // pathbasedsignalling. To enable if ever pbs is back
+ | ((_settings_game.economy.town_layout == TL_NO_ROADS ? 1 : 0) << 0x02) // townbuildnoroad
+ | (1 << 0x03) // pathbasedsignalling
| (0 << 0x04) // aichoosechance
| (1 << 0x05) // resolutionwidth
| (1 << 0x06) // resolutionheight
@@ -5281,7 +5281,8 @@ static void InitializeGRFSpecial()
| (1 << 0x16) // shortrvs
| (1 << 0x17) // articulatedrvs
| ((_settings_game.vehicle.dynamic_engines ? 1 : 0) << 0x18) // dynamic engines
- | (1 << 0x1E); // variablerunningcosts
+ | (1 << 0x1E) // variablerunningcosts
+ | (1 << 0x1F); // any switch is on
}
static void ResetCustomStations()