mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 05:38:56 +00:00
FREESCAPE: fixed bug when loading a game state in eclipse
This commit is contained in:
parent
474ef22e24
commit
e52f2643fd
@ -161,7 +161,11 @@ void DrillerEngine::gotoArea(uint16 areaID, int entranceID) {
|
||||
error("Invalid movement across areas");
|
||||
assert(newPos != -1);
|
||||
_sensors = _currentArea->getSensors();
|
||||
}
|
||||
} else if (entranceID == -1)
|
||||
debugC(1, kFreescapeDebugMove, "Loading game, no change in position");
|
||||
else
|
||||
error("Invalid area change!");
|
||||
|
||||
_lastPosition = _position;
|
||||
_gameStateVars[0x1f] = 0;
|
||||
|
||||
|
@ -156,11 +156,12 @@ void EclipseEngine::gotoArea(uint16 areaID, int entranceID) {
|
||||
_currentAreaMessages.clear();
|
||||
_currentAreaMessages.push_back(_currentArea->_name);
|
||||
|
||||
if (entranceID == -1)
|
||||
return;
|
||||
|
||||
assert(entranceID > 0);
|
||||
traverseEntrance(entranceID);
|
||||
if (entranceID > 0)
|
||||
traverseEntrance(entranceID);
|
||||
else if (entranceID == -1)
|
||||
debugC(1, kFreescapeDebugMove, "Loading game, no change in position");
|
||||
else
|
||||
error("Invalid area change!");
|
||||
|
||||
_lastPosition = _position;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user