Merge branch 'master' into jgrpp
# Conflicts: # src/cheat_gui.cpp # src/genworld_gui.cpp # src/landscape.cpp # src/lang/english.txt # src/saveload/afterload.cpp # src/screenshot.cpp # src/settings_gui.cpp # src/settings_internal.h # src/settings_type.h # src/table/settings.ini # src/tile_type.h # src/widgets/genworld_widget.h
This commit is contained in:
@@ -2818,13 +2818,13 @@ static ChangeInfoResult GlobalVarChangeInfo(uint gvid, int numinfo, int prop, co
|
||||
for (uint j = 0; j < SNOW_LINE_DAYS; j++) {
|
||||
table[i][j] = buf->ReadByte();
|
||||
if (_cur.grffile->grf_version >= 8) {
|
||||
if (table[i][j] != 0xFF) table[i][j] = table[i][j] * (1 + _settings_game.construction.max_heightlevel) / 256;
|
||||
if (table[i][j] != 0xFF) table[i][j] = table[i][j] * (1 + _settings_game.construction.map_height_limit) / 256;
|
||||
} else {
|
||||
if (table[i][j] >= 128) {
|
||||
/* no snow */
|
||||
table[i][j] = 0xFF;
|
||||
} else {
|
||||
table[i][j] = table[i][j] * (1 + _settings_game.construction.max_heightlevel) / 128;
|
||||
table[i][j] = table[i][j] * (1 + _settings_game.construction.map_height_limit) / 128;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6507,7 +6507,7 @@ bool GetGlobalVariable(byte param, uint32 *value, const GRFFile *grffile)
|
||||
|
||||
case 0x20: { // snow line height
|
||||
byte snowline = GetSnowLine();
|
||||
if (_settings_game.game_creation.landscape == LT_ARCTIC && snowline <= _settings_game.construction.max_heightlevel) {
|
||||
if (_settings_game.game_creation.landscape == LT_ARCTIC && snowline <= _settings_game.construction.map_height_limit) {
|
||||
*value = Clamp(snowline * (grffile->grf_version >= 8 ? 1 : TILE_HEIGHT), 0, 0xFE);
|
||||
} else {
|
||||
/* No snow */
|
||||
@@ -7182,7 +7182,7 @@ static uint32 GetPatchVariable(uint8 param)
|
||||
|
||||
/* The maximum height of the map. */
|
||||
case 0x14:
|
||||
return _settings_game.construction.max_heightlevel;
|
||||
return _settings_game.construction.map_height_limit;
|
||||
|
||||
/* Extra foundations base sprite */
|
||||
case 0x15:
|
||||
|
Reference in New Issue
Block a user