aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/insane
diff options
context:
space:
mode:
authorTravis Howell2006-03-30 13:47:18 +0000
committerTravis Howell2006-03-30 13:47:18 +0000
commit3e974d3604a30a6387d3699a0e25366d418d169a (patch)
tree880a540f0c4d0c6ba74ca752479a437c6e9bc807 /engines/scumm/insane
parent1ec46bae379bc682152b8ea00ec4cb8085d14587 (diff)
downloadscummvm-rg350-3e974d3604a30a6387d3699a0e25366d418d169a.tar.gz
scummvm-rg350-3e974d3604a30a6387d3699a0e25366d418d169a.tar.bz2
scummvm-rg350-3e974d3604a30a6387d3699a0e25366d418d169a.zip
Limit INSANE to existing enemies in PC demo of FT
svn-id: r21504
Diffstat (limited to 'engines/scumm/insane')
-rw-r--r--engines/scumm/insane/insane_iact.cpp5
-rw-r--r--engines/scumm/insane/insane_scenes.cpp4
2 files changed, 6 insertions, 3 deletions
diff --git a/engines/scumm/insane/insane_iact.cpp b/engines/scumm/insane/insane_iact.cpp
index 2d84375920..354128315b 100644
--- a/engines/scumm/insane/insane_iact.cpp
+++ b/engines/scumm/insane/insane_iact.cpp
@@ -185,6 +185,11 @@ void Insane::iactScene1(byte *renderBitmap, int32 codecparam, int32 setupsan12,
}
void Insane::chooseEnemy(void) {
+ if ((_vm->_game.features & GF_DEMO) && (_vm->_game.platform == Common::kPlatformPC)) {
+ _currEnemy = EN_ROTT1;
+ return;
+ }
+
if (readArray(58) != 0)
_enemy[EN_TORQUE].isEmpty = 1;
diff --git a/engines/scumm/insane/insane_scenes.cpp b/engines/scumm/insane/insane_scenes.cpp
index ea603e0e4e..9337131adf 100644
--- a/engines/scumm/insane/insane_scenes.cpp
+++ b/engines/scumm/insane/insane_scenes.cpp
@@ -148,9 +148,7 @@ void Insane::runScene(int arraynum) {
_insaneIsRunning = false;
- if ((_vm->_game.features & GF_DEMO) && (_vm->_game.platform == Common::kPlatformPC)) {
- _currEnemy = EN_ROTT1;
- } else {
+ if (!((_vm->_game.features & GF_DEMO) && (_vm->_game.platform == Common::kPlatformPC))) {
writeArray(50, _actor[0].inventory[INV_CHAIN]);
writeArray(51, _actor[0].inventory[INV_CHAINSAW]);
writeArray(52, _actor[0].inventory[INV_MACE]);