Codechange: hide the map's size related fields in the Map structure
This commit is contained in:
@@ -49,7 +49,7 @@ struct MAPSChunkHandler : ChunkHandler {
|
||||
SlGlobList(slt);
|
||||
if (!IsSavegameVersionBefore(SLV_RIFF_TO_ARRAY) && SlIterateArray() != -1) SlErrorCorrupt("Too many MAPS entries");
|
||||
|
||||
AllocateMap(_map_dim_x, _map_dim_y);
|
||||
Map::Allocate(_map_dim_x, _map_dim_y);
|
||||
}
|
||||
|
||||
void LoadCheck(size_t) const override
|
||||
|
@@ -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++) {
|
||||
|
Reference in New Issue
Block a user