aboutsummaryrefslogtreecommitdiff
path: root/scumm/script.cpp
diff options
context:
space:
mode:
authorPaweł Kołodziejski2003-04-06 16:02:08 +0000
committerPaweł Kołodziejski2003-04-06 16:02:08 +0000
commit8a619598e934c6b7170ad7c601e1130e715020d0 (patch)
treecfc1148055f5a5e88e6be37563743d574c8c61a8 /scumm/script.cpp
parentaa4898984a7f268a206437a790b251381664e66e (diff)
downloadscummvm-rg350-8a619598e934c6b7170ad7c601e1130e715020d0.tar.gz
scummvm-rg350-8a619598e934c6b7170ad7c601e1130e715020d0.tar.bz2
scummvm-rg350-8a619598e934c6b7170ad7c601e1130e715020d0.zip
also Loom exception in the read/write var funcs
svn-id: r6920
Diffstat (limited to 'scumm/script.cpp')
-rw-r--r--scumm/script.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/script.cpp b/scumm/script.cpp
index db1c3a36ec..56a3ed2f2f 100644
--- a/scumm/script.cpp
+++ b/scumm/script.cpp
@@ -355,7 +355,7 @@ int Scumm::readVar(uint var) {
return _vars[var];
if (var & 0x8000) {
- if (_gameId == GID_ZAK256) {
+ if ((_gameId == GID_ZAK256) || (_gameId == GID_LOOM)) {
// Emulate a wierd hack in Zak256 to read individual
// bits of a normal global
int b = (var & 0x000F);
@@ -405,7 +405,7 @@ void Scumm::writeVar(uint var, int value) {
}
if (var & 0x8000) {
- if (_gameId == GID_ZAK256) {
+ if ((_gameId == GID_ZAK256) || (_gameId == GID_LOOM)) {
// Emulate a wierd hack in Zak256 to read individual
// bits of a normal global
int b = (var & 0x000F);