aboutsummaryrefslogtreecommitdiff
path: root/scumm/insane
diff options
context:
space:
mode:
authorEugene Sandulenko2004-02-05 19:26:00 +0000
committerEugene Sandulenko2004-02-05 19:26:00 +0000
commitf98cc6f02eb2143a1267fd8cc2b6a8c949b79833 (patch)
tree3487512cbdef5519ba1062bb37ee651be51b1e24 /scumm/insane
parent6a6d69254de45d972ecd57a38d2a2793a3177811 (diff)
downloadscummvm-rg350-f98cc6f02eb2143a1267fd8cc2b6a8c949b79833.tar.gz
scummvm-rg350-f98cc6f02eb2143a1267fd8cc2b6a8c949b79833.tar.bz2
scummvm-rg350-f98cc6f02eb2143a1267fd8cc2b6a8c949b79833.zip
o Fix for bug #889751. Bump sound on the highway keeps playing
o Fix for bug #888639. Mine road female biker loop svn-id: r12743
Diffstat (limited to 'scumm/insane')
-rw-r--r--scumm/insane/insane_enemy.cpp11
-rw-r--r--scumm/insane/insane_scenes.cpp4
2 files changed, 5 insertions, 10 deletions
diff --git a/scumm/insane/insane_enemy.cpp b/scumm/insane/insane_enemy.cpp
index a119bda29b..2bf397f1b2 100644
--- a/scumm/insane/insane_enemy.cpp
+++ b/scumm/insane/insane_enemy.cpp
@@ -330,7 +330,7 @@ int32 Insane::enemy1handler(int32 actor1, int32 actor2, int32 probability) {
retval = 1;
}
if (_actor[actor2].kicking) {
- if (weaponMaxRange(actor2) >= dist)
+ if (weaponMaxRange(actor2) <= dist)
if (rand() % (probability * 2) <= 1)
retval = 1;
}
@@ -2519,13 +2519,8 @@ void Insane::actor12Reaction(int32 buttons) {
smlayer_setActorLayer(1, 2, 25);
_actor[1].kicking = false;
- if (_actor[1].act[2].frame >= 16) {
- if (_actor[1].x >= 50 && _actor[1].x <= 270)
- break;
-
- if (_actor[1].act[2].frame < 8)
- break;
-
+ if (_actor[1].act[2].frame >= 16 || ((_actor[1].x < 50 || _actor[1].x > 270)
+ && (_actor[1].act[2].frame >= 8))) {
queueSceneSwitch(11, 0, _enemy[_currEnemy].filename, 64, 0, 0, 0);
_actor[1].act[2].state = 38;
}
diff --git a/scumm/insane/insane_scenes.cpp b/scumm/insane/insane_scenes.cpp
index daa15be229..546e123169 100644
--- a/scumm/insane/insane_scenes.cpp
+++ b/scumm/insane/insane_scenes.cpp
@@ -1122,7 +1122,7 @@ void Insane::postCase3(byte *renderBitmap, int32 codecparam, int32 setupsan12,
if (!smlayer_isSoundRunning(86))
smlayer_startSfx(86);
} else {
- if (!smlayer_isSoundRunning(86))
+ if (smlayer_isSoundRunning(86))
smlayer_stopSound(86);
}
@@ -1166,7 +1166,7 @@ void Insane::postCase5(byte *renderBitmap, int32 codecparam, int32 setupsan12,
if (!smlayer_isSoundRunning(86))
smlayer_startSfx(86);
} else {
- if (!smlayer_isSoundRunning(86))
+ if (smlayer_isSoundRunning(86))
smlayer_stopSound(86);
}