aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/combat.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2017-11-07 20:04:00 -0500
committerPaul Gilbert2017-11-07 20:04:00 -0500
commit8a42959eed458e3ffa913b8e2cce463857cd9dc1 (patch)
tree74ab92ed4b512b487ec352ed621bd3e031546f82 /engines/xeen/combat.cpp
parent262570a576f2e5a47441ed7461eae8ba5f0d50fb (diff)
downloadscummvm-rg350-8a42959eed458e3ffa913b8e2cce463857cd9dc1.tar.gz
scummvm-rg350-8a42959eed458e3ffa913b8e2cce463857cd9dc1.tar.bz2
scummvm-rg350-8a42959eed458e3ffa913b8e2cce463857cd9dc1.zip
XEEN: Fix FX calls in multiAttack
Diffstat (limited to 'engines/xeen/combat.cpp')
-rw-r--r--engines/xeen/combat.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/xeen/combat.cpp b/engines/xeen/combat.cpp
index 784dd18a6e..f60ed38e55 100644
--- a/engines/xeen/combat.cpp
+++ b/engines/xeen/combat.cpp
@@ -1830,6 +1830,8 @@ void Combat::multiAttack(int powNum) {
sound.playFX(21);
return;
}
+
+ sound.playFX(49);
} else {
_shooting[0] = 1;
_shootType = ST_0;
@@ -1914,7 +1916,7 @@ void Combat::multiAttack(int powNum) {
}
} else {
int cell = map.getCell(2);
- if (cell < map.mazeData()._difficulties._wallNoPass) {
+ if (cell >= map.mazeData()._difficulties._wallNoPass) {
sound.playFX(46);
goto finished;
}
@@ -1964,7 +1966,7 @@ void Combat::multiAttack(int powNum) {
}
} else {
int cell = map.getCell(7);
- if (cell < map.mazeData()._difficulties._wallNoPass) {
+ if (cell >= map.mazeData()._difficulties._wallNoPass) {
sound.playFX(46);
goto finished;
}
@@ -2014,7 +2016,7 @@ void Combat::multiAttack(int powNum) {
}
} else {
int cell = map.getCell(14);
- if (cell < map.mazeData()._difficulties._wallNoPass) {
+ if (cell >= map.mazeData()._difficulties._wallNoPass) {
sound.playFX(46);
goto finished;
}