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
void isoReset()
{
if (gMapGlobalVars != NULL) {
internal_free(gMapGlobalVars);
gMapGlobalVars = NULL;
gMapGlobalVarsLength = 0;
}
// NOTE: Uninline.
mapGlobalVariablesFree();
if (gMapLocalVars != NULL) {
internal_free(gMapLocalVars);
gMapLocalVars = NULL;
gMapLocalVarsLength = 0;
}
// NOTE: Uninline.
mapLocalVariablesFree();
artReset();
tileReset();
objectsReset();
colorCycleReset();
interfaceReset();
gEnteringElevation = -1;
gEnteringTile = -1;
gEnteringRotation = -1;
// NOTE: Uninline.
mapSetEnteringLocation(-1, -1, -1);
}
// 0x481F48