aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/script.cpp
diff options
context:
space:
mode:
authorTravis Howell2007-03-04 00:44:04 +0000
committerTravis Howell2007-03-04 00:44:04 +0000
commitd1d55795497e58c2d693c278dab40d42038a72e5 (patch)
treeeb4e0de9e8fd4b9767042fd523cc8d58f637ac0a /engines/scumm/script.cpp
parent69b8d7240aa90a029d9b366ff1a8533f7c91fd87 (diff)
downloadscummvm-rg350-d1d55795497e58c2d693c278dab40d42038a72e5.tar.gz
scummvm-rg350-d1d55795497e58c2d693c278dab40d42038a72e5.tar.bz2
scummvm-rg350-d1d55795497e58c2d693c278dab40d42038a72e5.zip
Fix script error in PC Engine version of Loom.
svn-id: r25958
Diffstat (limited to 'engines/scumm/script.cpp')
-rw-r--r--engines/scumm/script.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/scumm/script.cpp b/engines/scumm/script.cpp
index dc97f8694c..b820c4742c 100644
--- a/engines/scumm/script.cpp
+++ b/engines/scumm/script.cpp
@@ -556,7 +556,8 @@ int ScummEngine::readVar(uint var) {
assertRange(0, var, _numRoomVariables - 1, "room variable (reading)");
return _roomVars[var];
- } else if (_game.version <= 3 && !(_game.id == GID_INDY3 && (_game.platform == Common::kPlatformFMTowns))) {
+ } else if (_game.version <= 3 && !(_game.id == GID_INDY3 && _game.platform == Common::kPlatformFMTowns) &&
+ !(_game.id == GID_LOOM && _game.platform == Common::kPlatformPCEngine)) {
int bit = var & 0xF;
var = (var >> 4) & 0xFF;
@@ -648,7 +649,8 @@ void ScummEngine::writeVar(uint var, int value) {
assertRange(0, var, _numRoomVariables - 1, "room variable (writing)");
_roomVars[var] = value;
- } else if (_game.version <= 3 && !(_game.id == GID_INDY3 && (_game.platform == Common::kPlatformFMTowns))) {
+ } else if (_game.version <= 3 && !(_game.id == GID_INDY3 && _game.platform == Common::kPlatformFMTowns) &&
+ !(_game.id == GID_LOOM && _game.platform == Common::kPlatformPCEngine)) {
// In the old games, the bit variables were using the same memory
// as the normal variables!
int bit = var & 0xF;