diff options
author | frosch <frosch@openttd.org> | 2011-07-22 18:59:10 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-07-22 18:59:10 +0000 |
commit | 5c6a7f42d57f05608cd97a958f3e0fdfdc458380 (patch) | |
tree | 4ed529ef8cf480bc13cfc690dde941b6cd68cc1f /src | |
parent | 31f6e99000e8dd957903dc94ecfb23bdd7e98360 (diff) | |
download | openttd-5c6a7f42d57f05608cd97a958f3e0fdfdc458380.tar.xz |
(svn r22682) -Fix: [NewGRF] Disallow accessing variable 1B due to desync reasons.
Diffstat (limited to 'src')
-rw-r--r-- | src/newgrf.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index ba9aab9f0..f902ce601 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -5150,7 +5150,7 @@ bool GetGlobalVariable(byte param, uint32 *value) return true; case 0x11: // current rail tool type - *value = 0; + *value = 0; // constant fake value to avoid desync return true; case 0x12: // Game mode @@ -5168,7 +5168,7 @@ bool GetGlobalVariable(byte param, uint32 *value) return true; case 0x1B: // Display options - *value = GB(_display_opt, 0, 6); + *value = 0x3F; // constant fake value to avoid desync return true; case 0x1D: // TTD Platform, 00=TTDPatch, 01=OpenTTD @@ -5183,7 +5183,7 @@ bool GetGlobalVariable(byte param, uint32 *value) if (_cur_grffile->traininfo_vehicle_width == VEHICLEINFO_FULL_VEHICLE_WIDTH) SetBit(*value, GMB_TRAIN_WIDTH_32_PIXELS); return true; - /* case 0x1F: // locale dependent settings not implemented */ + /* case 0x1F: // locale dependent settings not implemented to avoid desync */ case 0x20: // snow line height *value = _settings_game.game_creation.landscape == LT_ARCTIC ? GetSnowLine() : 0xFF; |