diff options
Diffstat (limited to 'engines/xeen/interface.cpp')
-rw-r--r-- | engines/xeen/interface.cpp | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/engines/xeen/interface.cpp b/engines/xeen/interface.cpp index 0073552ca0..625f9c68b4 100644 --- a/engines/xeen/interface.cpp +++ b/engines/xeen/interface.cpp @@ -878,17 +878,19 @@ void Interface::startFalling(bool flag) { _falling = FALL_1; map.load(party._mazeId); - if (flag && map._isOutdoors && ((party._mazePosition.x & 16) || (party._mazePosition.y & 16))) - map.getNewMaze(); + if (flag) { + if (map._isOutdoors && ((party._mazePosition.x & 16) || (party._mazePosition.y & 16))) + map.getNewMaze(); - _flipGround ^= 1; - draw3d(true); - int tempVal = scripts._v2; - scripts._v2 = 0; - combat.giveCharDamage(party._fallDamage, DT_PHYSICAL, 0); - scripts._v2 = tempVal; + _flipGround ^= 1; + draw3d(true); + int tempVal = scripts._v2; + scripts._v2 = 0; + combat.giveCharDamage(party._fallDamage, DT_PHYSICAL, 0); - _flipGround ^= 1; + scripts._v2 = tempVal; + _flipGround ^= 1; + } } bool Interface::checkMoveDirection(int key) { |