aboutsummaryrefslogtreecommitdiff
path: root/scumm/script.cpp
diff options
context:
space:
mode:
authorJonathan Gray2003-05-04 07:34:54 +0000
committerJonathan Gray2003-05-04 07:34:54 +0000
commite61f2dfd748814ef8c748b9e62859feec3c7abbc (patch)
treee48641e6bf32785c0330a3612506eeb7906f095c /scumm/script.cpp
parent775cfc4b4faf509a35a22b725d9bd3fafe7d925a (diff)
downloadscummvm-rg350-e61f2dfd748814ef8c748b9e62859feec3c7abbc.tar.gz
scummvm-rg350-e61f2dfd748814ef8c748b9e62859feec3c7abbc.tar.bz2
scummvm-rg350-e61f2dfd748814ef8c748b9e62859feec3c7abbc.zip
don't know why this was removed but it breaks several games making it for all non v2 games
svn-id: r7311
Diffstat (limited to 'scumm/script.cpp')
-rw-r--r--scumm/script.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/scumm/script.cpp b/scumm/script.cpp
index e9bfd31a51..8482ec03a6 100644
--- a/scumm/script.cpp
+++ b/scumm/script.cpp
@@ -383,6 +383,9 @@ int Scumm::readVar(uint var) {
var &= ~0x2000;
}
+ if (!(_features & GF_AFTER_V2) && !(var & 0xF000))
+ return _vars[var];
+
if (var & 0x8000) {
if ((_gameId == GID_ZAK256) || (_features & GF_OLD_BUNDLE)) {
// Emulate a wierd hack in Zak256 to read individual