From 8a619598e934c6b7170ad7c601e1130e715020d0 Mon Sep 17 00:00:00 2001 From: Paweł Kołodziejski Date: Sun, 6 Apr 2003 16:02:08 +0000 Subject: also Loom exception in the read/write var funcs svn-id: r6920 --- scumm/script.cpp | 4 ++-- 1 file 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); -- cgit v1.2.3