Uninline mapSetEnteringLocation
This commit is contained in:
parent
dea8c98399
commit
9864a2551d
15
src/map.cc
15
src/map.cc
|
@ -225,9 +225,8 @@ int isoInit()
|
||||||
|
|
||||||
mapMakeMapsDirectory();
|
mapMakeMapsDirectory();
|
||||||
|
|
||||||
gEnteringElevation = -1;
|
// NOTE: Uninline.
|
||||||
gEnteringTile = -1;
|
mapSetEnteringLocation(-1, -1, -1);
|
||||||
gEnteringRotation = -1;
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -808,9 +807,8 @@ static int mapLoad(File* stream)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gEnteringElevation == -1) {
|
if (gEnteringElevation == -1) {
|
||||||
gEnteringElevation = gMapHeader.enteringElevation;
|
// NOTE: Uninline.
|
||||||
gEnteringTile = gMapHeader.enteringTile;
|
mapSetEnteringLocation(gMapHeader.enteringElevation, gMapHeader.enteringTile, gMapHeader.enteringRotation);
|
||||||
gEnteringRotation = gMapHeader.enteringRotation;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_obj_remove_all();
|
_obj_remove_all();
|
||||||
|
@ -991,9 +989,8 @@ err:
|
||||||
|
|
||||||
gameMouseSetCursor(savedMouseCursorId);
|
gameMouseSetCursor(savedMouseCursorId);
|
||||||
|
|
||||||
gEnteringElevation = -1;
|
// NOTE: Uninline.
|
||||||
gEnteringTile = -1;
|
mapSetEnteringLocation(-1, -1, -1);
|
||||||
gEnteringRotation = -1;
|
|
||||||
|
|
||||||
gameMovieFadeOut();
|
gameMovieFadeOut();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue