aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/insane/insane.cpp2
-rw-r--r--scumm/insane/insane_ben.cpp2
-rw-r--r--scumm/insane/insane_enemy.cpp2
-rw-r--r--scumm/insane/insane_scenes.cpp30
4 files changed, 18 insertions, 18 deletions
diff --git a/scumm/insane/insane.cpp b/scumm/insane/insane.cpp
index 6daff38fda..7fc9afa308 100644
--- a/scumm/insane/insane.cpp
+++ b/scumm/insane/insane.cpp
@@ -767,7 +767,7 @@ void Insane::switchSceneIfNeeded(void) {
_needSceneSwitch = false;
loadSceneData(_temp2SceneId, 0, 1);
- if(loadSceneData(_temp2SceneId, 0, 2)) {
+ if (loadSceneData(_temp2SceneId, 0, 2)) {
setSceneCostumes(_temp2SceneId);
_sceneData2Loaded = 0;
_sceneData1Loaded = 0;
diff --git a/scumm/insane/insane_ben.cpp b/scumm/insane/insane_ben.cpp
index 2d12061772..1f56df116a 100644
--- a/scumm/insane/insane_ben.cpp
+++ b/scumm/insane/insane_ben.cpp
@@ -716,7 +716,7 @@ void Insane::actor02Reaction(int32 buttons) {
smlayer_startSfx(74);
break;
default:
- if(calcEnemyDamage(1, 0) == 1)
+ if (calcEnemyDamage(1, 0) == 1)
smlayer_startSfx(73);
break;
}
diff --git a/scumm/insane/insane_enemy.cpp b/scumm/insane/insane_enemy.cpp
index a8e1f91cc4..7b70747af9 100644
--- a/scumm/insane/insane_enemy.cpp
+++ b/scumm/insane/insane_enemy.cpp
@@ -1772,7 +1772,7 @@ void Insane::actor12Reaction(int32 buttons) {
smlayer_startSfx(74);
break;
case INV_HAND:
- if(calcBenDamage(1, 0))
+ if (calcBenDamage(1, 0))
smlayer_startSfx(73);
break;
}
diff --git a/scumm/insane/insane_scenes.cpp b/scumm/insane/insane_scenes.cpp
index c3b25be260..49a0035e7e 100644
--- a/scumm/insane/insane_scenes.cpp
+++ b/scumm/insane/insane_scenes.cpp
@@ -827,17 +827,17 @@ void Insane::procPostRendering(byte *renderBitmap, int32 codecparam, int32 setup
int32 tmpSnd;
bool needMore = false;
- if(!_keyboardDisable) {
+ if (!_keyboardDisable) {
switch (_currSceneId) {
case 12:
postCase11(renderBitmap, codecparam, setupsan12, setupsan13, curFrame, maxFrame);
break;
case 1:
postCase0(renderBitmap, codecparam, setupsan12, setupsan13, curFrame, maxFrame);
- if(!smlayer_isSoundRunning(88))
+ if (!smlayer_isSoundRunning(88))
smlayer_startSfx(88);
smlayer_soundSetPan(88, ((_actor[0].x+160)>>2)+64);
- if(_tiresRustle) {
+ if (_tiresRustle) {
if (!smlayer_isSoundRunning(87))
smlayer_startSfx(87);
} else {
@@ -850,12 +850,12 @@ void Insane::procPostRendering(byte *renderBitmap, int32 codecparam, int32 setup
smlayer_stopSound(95);
smlayer_stopSound(87);
smlayer_stopSound(88);
- if(!smlayer_isSoundRunning(88))
+ if (!smlayer_isSoundRunning(88))
smlayer_startSfx(88);
break;
case 17:
postCase16(renderBitmap, codecparam, setupsan12, setupsan13, curFrame, maxFrame);
- if(!smlayer_isSoundRunning(88))
+ if (!smlayer_isSoundRunning(88))
smlayer_startSfx(88);
break;
case 2:
@@ -864,18 +864,18 @@ void Insane::procPostRendering(byte *renderBitmap, int32 codecparam, int32 setup
case 3:
postCase2(renderBitmap, codecparam, setupsan12, setupsan13, curFrame, maxFrame);
needMore = true;
- if(!smlayer_isSoundRunning(89)) {
+ if (!smlayer_isSoundRunning(89)) {
smlayer_startSfx(89);
smlayer_soundSetPriority(89, 100);
}
tmpSnd = _enemy[_currEnemy].sound;
- if(!smlayer_isSoundRunning(tmpSnd)) {
+ if (!smlayer_isSoundRunning(tmpSnd)) {
smlayer_startSfx(tmpSnd);
smlayer_soundSetPriority(tmpSnd, 100);
}
smlayer_soundSetPan(89, ((_actor[0].x+160)>>2)+64);
smlayer_soundSetPan(tmpSnd, ((_actor[1].x+160)>>2)+64);
- if(!_tiresRustle) {
+ if (!_tiresRustle) {
smlayer_stopSound(87);
} else {
if (!smlayer_isSoundRunning(87))
@@ -885,12 +885,12 @@ void Insane::procPostRendering(byte *renderBitmap, int32 codecparam, int32 setup
case 21:
postCase20(renderBitmap, codecparam, setupsan12, setupsan13, curFrame, maxFrame);
needMore = true;
- if(!smlayer_isSoundRunning(89)) {
+ if (!smlayer_isSoundRunning(89)) {
smlayer_startSfx(89);
smlayer_soundSetPriority(89, 100);
}
tmpSnd = _enemy[_currEnemy].sound;
- if(!smlayer_isSoundRunning(tmpSnd)) {
+ if (!smlayer_isSoundRunning(tmpSnd)) {
smlayer_startSfx(tmpSnd);
smlayer_soundSetPriority(tmpSnd, 100);
}
@@ -900,13 +900,13 @@ void Insane::procPostRendering(byte *renderBitmap, int32 codecparam, int32 setup
case 4:
case 5:
postCase3(renderBitmap, codecparam, setupsan12, setupsan13, curFrame, maxFrame);
- if(!smlayer_isSoundRunning(88))
+ if (!smlayer_isSoundRunning(88))
smlayer_startSfx(88);
smlayer_soundSetPan(88, ((_actor[0].x+160)>>2)+64);
break;
case 6:
postCase5(renderBitmap, codecparam, setupsan12, setupsan13, curFrame, maxFrame);
- if(!smlayer_isSoundRunning(88))
+ if (!smlayer_isSoundRunning(88))
smlayer_startSfx(88);
smlayer_soundSetPan(88, ((_actor[0].x+160)>>2)+64);
break;
@@ -932,12 +932,12 @@ void Insane::procPostRendering(byte *renderBitmap, int32 codecparam, int32 setup
case 13:
postCase12(renderBitmap, codecparam, setupsan12, setupsan13, curFrame, maxFrame);
needMore = true;
- if(!smlayer_isSoundRunning(89)) {
+ if (!smlayer_isSoundRunning(89)) {
smlayer_startSfx(89);
smlayer_soundSetPriority(89, 100);
}
tmpSnd = _enemy[_currEnemy].sound;
- if(!smlayer_isSoundRunning(tmpSnd)) {
+ if (!smlayer_isSoundRunning(tmpSnd)) {
smlayer_startSfx(tmpSnd);
smlayer_soundSetPriority(tmpSnd, 100);
}
@@ -945,7 +945,7 @@ void Insane::procPostRendering(byte *renderBitmap, int32 codecparam, int32 setup
smlayer_soundSetPan(tmpSnd, ((_actor[1].x+160)>>2)+64);
break;
case 24:
- if(!smlayer_isSoundRunning(90)) {
+ if (!smlayer_isSoundRunning(90)) {
smlayer_startSfx(90);
smlayer_soundSetPriority(90, 100);
}