(svn r26873) -Change: split type_height into a type and height array (ic111)

This commit is contained in:
rubidium
2014-09-21 11:14:58 +00:00
parent 51a1c712f2
commit 04e2324b8f
6 changed files with 49 additions and 16 deletions

View File

@@ -570,6 +570,13 @@ bool AfterLoadGame()
}
}
if (IsSavegameVersionBefore(194)) {
/* 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);
}
}
/* in version 2.1 of the savegame, town owner was unified. */
if (IsSavegameVersionBefore(2, 1)) ConvertTownOwner();