(svn r26880) -Add: stub settings for limiting bridge and map height

This commit is contained in:
rubidium
2014-09-21 11:27:34 +00:00
parent 9daf7e749c
commit f41b55f0ff
5 changed files with 35 additions and 0 deletions

View File

@@ -583,6 +583,8 @@ bool AfterLoadGame()
}
if (IsSavegameVersionBefore(194)) {
_settings_game.construction.max_heightlevel = 15;
/* In old savegame versions, the heightlevel was coded in bits 0..3 of the type field */
for (TileIndex t = 0; t < map_size; t++) {
_m[t].height = GB(_m[t].type, 0, 4);