aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2013-03-30 17:10:30 +0200
committerEugene Sandulenko2013-03-30 17:10:30 +0200
commit880f2641502c3c946bc1b619a13f704007f791f5 (patch)
tree176974053a7e5fbf7b9caf4a3028856da1da5e00
parenta36a7253e479d823a5e93104a166a6198663a3c2 (diff)
downloadscummvm-rg350-880f2641502c3c946bc1b619a13f704007f791f5.tar.gz
scummvm-rg350-880f2641502c3c946bc1b619a13f704007f791f5.tar.bz2
scummvm-rg350-880f2641502c3c946bc1b619a13f704007f791f5.zip
SCUMM: Fix more bugs in INSANE
-rw-r--r--engines/scumm/insane/insane_ben.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/scumm/insane/insane_ben.cpp b/engines/scumm/insane/insane_ben.cpp
index 48aaab505a..e88a1d3294 100644
--- a/engines/scumm/insane/insane_ben.cpp
+++ b/engines/scumm/insane/insane_ben.cpp
@@ -634,7 +634,7 @@ void Insane::actor02Reaction(int32 buttons) {
_actor[0].newFacingFlag = 1;
_actor[0].kicking = false;
if ((_actor[0].act[2].frame == 3) && (calcEnemyDamage(0, 0) == 1)) {
- _actor[1].damage = weaponDamage(0);
+ _actor[1].damage += weaponDamage(0);
smlayer_startSfx(64);
_actor[1].cursorX = 320;
}
@@ -805,7 +805,7 @@ void Insane::actor02Reaction(int32 buttons) {
if ((_actor[1].x - _actor[0].x <= weaponMaxRange(0)) &&
(_actor[1].x - _actor[0].x >= weaponMinRange(0))) {
smlayer_startSfx(76);
- _actor[1].damage = weaponDamage(0);
+ _actor[1].damage += weaponDamage(0);
}
break;
default:
@@ -813,7 +813,7 @@ void Insane::actor02Reaction(int32 buttons) {
smlayer_startSfx(76);
break;
}
- smlayer_setActorFacing(0, 2, 21,180);
+ smlayer_setActorFacing(0, 2, 21, 180);
_actor[0].act[2].state = 17;
}
_actor[0].act[2].tilt = calcTilt(_actor[0].tilt);