1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-24 12:44:10 +01:00

(svn r22684) [1.1] -Backport from trunk:

- Change: [NewGRF] Only allow access (via hotkey and menu) to the bounding box visualisation when NewGRF developer tools are enabled (r22675)
- Fix: [NewGRF] Disallow accessing variable 1B in network games due to desync reasons (r22682)
- Update: languages
This commit is contained in:
rubidium
2011-07-24 14:34:38 +00:00
parent 4f8053e559
commit e1841b5d68
22 changed files with 112 additions and 73 deletions

View File

@@ -5040,7 +5040,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
@@ -5058,7 +5058,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
@@ -5073,7 +5073,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;