aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/interface.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2018-03-28 22:38:14 -0400
committerPaul Gilbert2018-03-28 22:38:14 -0400
commitd320bc569ab5528841d201a27b2c2396d11982ed (patch)
tree66c6422cf37a52b90ec201d4029acd12a40115a0 /engines/xeen/interface.cpp
parentfc03c1e71cef6e50e8e809452f0af94d75643ac3 (diff)
downloadscummvm-rg350-d320bc569ab5528841d201a27b2c2396d11982ed.tar.gz
scummvm-rg350-d320bc569ab5528841d201a27b2c2396d11982ed.tar.bz2
scummvm-rg350-d320bc569ab5528841d201a27b2c2396d11982ed.zip
XEEN: Fix check for if party has swimming skill
Diffstat (limited to 'engines/xeen/interface.cpp')
-rw-r--r--engines/xeen/interface.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/xeen/interface.cpp b/engines/xeen/interface.cpp
index 201f98c029..9d195f7881 100644
--- a/engines/xeen/interface.cpp
+++ b/engines/xeen/interface.cpp
@@ -974,11 +974,8 @@ bool Interface::checkMoveDirection(int key) {
} else {
party._mazeDirection = dir;
- if (startSurfaceId == SURFTYPE_SWAMP || party.checkSkill(SWIMMING) ||
+ if (startSurfaceId != SURFTYPE_SWAMP || party.checkSkill(SWIMMING) ||
party._walkOnWaterActive) {
- sound.playFX(46);
- return false;
- } else {
if (_buttonValue == Common::KEYCODE_UP && _wo[107]) {
_openDoor = true;
sound.playFX(47);
@@ -986,6 +983,9 @@ bool Interface::checkMoveDirection(int key) {
_openDoor = false;
}
return true;
+ } else {
+ sound.playFX(46);
+ return false;
}
}
}