From 382de999ccd59c13a69ae8fa32ab815271d04391 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Thu, 15 Sep 2022 17:43:33 +0300 Subject: [PATCH] Review isoReset --- src/map.cc | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/src/map.cc b/src/map.cc index 71f0cb4..54f91ab 100644 --- a/src/map.cc +++ b/src/map.cc @@ -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