Codechange: hide the map's size related fields in the Map structure

This commit is contained in:
Rubidium
2023-01-21 12:14:28 +01:00
committed by rubidium42
parent de6bc8e692
commit 7cdc23fd64
6 changed files with 44 additions and 33 deletions

View File

@@ -1465,7 +1465,7 @@ static bool LoadOldGameDifficulty(LoadgameState *ls, int num)
static bool LoadOldMapPart1(LoadgameState *ls, int num)
{
if (_savegame_type == SGT_TTO) {
AllocateMap(OLD_MAP_SIZE, OLD_MAP_SIZE);
Map::Allocate(OLD_MAP_SIZE, OLD_MAP_SIZE);
}
for (uint i = 0; i < OLD_MAP_SIZE; i++) {