From 9864a2551d79447fb97095c5de82b8c55c9d4805 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Thu, 15 Sep 2022 19:59:16 +0300 Subject: [PATCH] Uninline mapSetEnteringLocation --- src/map.cc | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/map.cc b/src/map.cc index 00da71d..7b1d240 100644 --- a/src/map.cc +++ b/src/map.cc @@ -225,9 +225,8 @@ int isoInit() mapMakeMapsDirectory(); - gEnteringElevation = -1; - gEnteringTile = -1; - gEnteringRotation = -1; + // NOTE: Uninline. + mapSetEnteringLocation(-1, -1, -1); return 0; } @@ -808,9 +807,8 @@ static int mapLoad(File* stream) } if (gEnteringElevation == -1) { - gEnteringElevation = gMapHeader.enteringElevation; - gEnteringTile = gMapHeader.enteringTile; - gEnteringRotation = gMapHeader.enteringRotation; + // NOTE: Uninline. + mapSetEnteringLocation(gMapHeader.enteringElevation, gMapHeader.enteringTile, gMapHeader.enteringRotation); } _obj_remove_all(); @@ -991,9 +989,8 @@ err: gameMouseSetCursor(savedMouseCursorId); - gEnteringElevation = -1; - gEnteringTile = -1; - gEnteringRotation = -1; + // NOTE: Uninline. + mapSetEnteringLocation(-1, -1, -1); gameMovieFadeOut();