From 1478fa93b344fc25000725dd143109e4def24f0b Mon Sep 17 00:00:00 2001 From: Michael Lutz Date: Fri, 25 Dec 2020 12:36:13 +0100 Subject: Add: [NewGRF] Patch flag to test if inflation is on or off. --- src/newgrf.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 */ -- cgit v1.2.3-70-g09d2