aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorJohannes Schickel2009-03-30 12:10:10 +0000
committerJohannes Schickel2009-03-30 12:10:10 +0000
commit67a881f44402a3b0110d837270e113ead0211753 (patch)
tree24bab856b9a74ca3d7255abdf5df31acca18e530 /engines/scumm
parenta619443dbc2124d7a40a976c901226931b1f7db5 (diff)
downloadscummvm-rg350-67a881f44402a3b0110d837270e113ead0211753.tar.gz
scummvm-rg350-67a881f44402a3b0110d837270e113ead0211753.tar.bz2
scummvm-rg350-67a881f44402a3b0110d837270e113ead0211753.zip
SCUMM: Commit of parentheses patch from salty-horse. (from -devel "Enabling -Wparentheses in the Makefile").
svn-id: r39761
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/insane/insane_enemy.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/scumm/insane/insane_enemy.cpp b/engines/scumm/insane/insane_enemy.cpp
index bd02cae32c..5087adcf51 100644
--- a/engines/scumm/insane/insane_enemy.cpp
+++ b/engines/scumm/insane/insane_enemy.cpp
@@ -911,13 +911,14 @@ int32 Insane::enemy5handler(int32 actor1, int32 actor2, int32 probability) {
if (_vm->_rnd.getRandomNumber(probability - 1) == 1)
retval = 1;
} else {
- if (weaponMaxRange(actor2) >= dist && _actor[actor2].weapon == INV_CHAINSAW)
+ if (weaponMaxRange(actor2) >= dist && _actor[actor2].weapon == INV_CHAINSAW) {
if (!_actor[actor2].kicking) {
if (_vm->_rnd.getRandomNumber(probability - 1) == 1)
retval = 1;
} else {
retval = 1;
}
+ }
_actor[actor1].cursorX = 0;
if (_enHdlVar[EN_VULTF2][0] >= 100)
_enHdlVar[EN_VULTF2][3] = 3;