Changeset - r24512:4a1407ed9784
[Not reviewed]
master
0 1 0
Michael Lutz - 3 years ago 2020-12-25 11:36:13
michi@icosahedron.de
Add: [NewGRF] Patch flag to test if inflation is on or off.
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/newgrf.cpp
Show inline comments
 
@@ -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 */
0 comments (0 inline, 0 general)