diff options
author | Michael Lutz <michi@icosahedron.de> | 2020-12-25 12:36:13 +0100 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2020-12-27 10:28:39 +0000 |
commit | 1478fa93b344fc25000725dd143109e4def24f0b (patch) | |
tree | 8ca5d7df37d39835fe0b803ec319a9c0932e0e29 | |
parent | 5a5d613ee38ea90f235ec7d8c0388bbb52707155 (diff) | |
download | openttd-1478fa93b344fc25000725dd143109e4def24f0b.tar.xz |
Add: [NewGRF] Patch flag to test if inflation is on or off.
-rw-r--r-- | src/newgrf.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index aa4802226..097e68ae2 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -8389,7 +8389,8 @@ static void InitializeGRFSpecial() | (1 << 0x1E) // variablerunningcosts | (1 << 0x1F); // any switch is on - _ttdpatch_flags[4] = (1 << 0x00); // larger persistent storage + _ttdpatch_flags[4] = (1 << 0x00) // larger persistent storage + | ((_settings_game.economy.inflation ? 1 : 0) << 0x01); // inflation is on } /** Reset and clear all NewGRF stations */ |