aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2006-01-22 21:28:37 +0000
committerMax Horn2006-01-22 21:28:37 +0000
commit90d67659dc207aadb368613a8a4412d0c34da62d (patch)
treefa30a39c310c8fdb7756c2c486d1693c3a1fd476
parent7012a370cdfadec832e2dba8394845dfba03e5b1 (diff)
downloadscummvm-rg350-90d67659dc207aadb368613a8a4412d0c34da62d.tar.gz
scummvm-rg350-90d67659dc207aadb368613a8a4412d0c34da62d.tar.bz2
scummvm-rg350-90d67659dc207aadb368613a8a4412d0c34da62d.zip
Overlooked the Indy3 FM-TOWNS case in my previous commit <sigh>
svn-id: r20141
-rw-r--r--scumm/script.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/script.cpp b/scumm/script.cpp
index 9068c4b17a..b9a8195f18 100644
--- a/scumm/script.cpp
+++ b/scumm/script.cpp
@@ -531,7 +531,7 @@ int ScummEngine::readVar(uint var) {
checkRange(_numRoomVariables - 1, 0, var, "Room variable %d out of range(w)");
return _roomVars[var];
- } else if (_version <= 3) {
+ } else if (_version <= 3 && !(_gameId == GID_INDY3 && (_platform == Common::kPlatformFMTowns))) {
int bit = var & 0xF;
var = (var >> 4) & 0xFF;
@@ -620,7 +620,7 @@ void ScummEngine::writeVar(uint var, int value) {
checkRange(_numRoomVariables - 1, 0, var, "Room variable %d out of range(w)");
_roomVars[var] = value;
- } else if (_version <= 3) {
+ } else if (_version <= 3 && !(_gameId == GID_INDY3 && (_platform == Common::kPlatformFMTowns))) {
// In the old games, the bit variables were using the same memory
// as the normal variables!
int bit = var & 0xF;