Review isoReset

This commit is contained in:
Alexander Batalov 2022-09-15 17:43:33 +03:00
parent 06618d9e21
commit 382de999cc
1 changed files with 7 additions and 13 deletions

View File

@ -231,26 +231,20 @@ int isoInit()
// 0x481ED4 // 0x481ED4
void isoReset() void isoReset()
{ {
if (gMapGlobalVars != NULL) { // NOTE: Uninline.
internal_free(gMapGlobalVars); mapGlobalVariablesFree();
gMapGlobalVars = NULL;
gMapGlobalVarsLength = 0;
}
if (gMapLocalVars != NULL) { // NOTE: Uninline.
internal_free(gMapLocalVars); mapLocalVariablesFree();
gMapLocalVars = NULL;
gMapLocalVarsLength = 0;
}
artReset(); artReset();
tileReset(); tileReset();
objectsReset(); objectsReset();
colorCycleReset(); colorCycleReset();
interfaceReset(); interfaceReset();
gEnteringElevation = -1;
gEnteringTile = -1; // NOTE: Uninline.
gEnteringRotation = -1; mapSetEnteringLocation(-1, -1, -1);
} }
// 0x481F48 // 0x481F48