aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2012-10-25 12:43:14 +1100
committerPaul Gilbert2012-10-25 12:43:14 +1100
commit5445866fb52a963a3ac52ab629e802f119f18649 (patch)
tree0cfa1fbeec07bcd10f723f677b45bb8e6a95453a
parenta0b540108d74aa2e8138116adb9614b025183e36 (diff)
downloadscummvm-rg350-5445866fb52a963a3ac52ab629e802f119f18649.tar.gz
scummvm-rg350-5445866fb52a963a3ac52ab629e802f119f18649.tar.bz2
scummvm-rg350-5445866fb52a963a3ac52ab629e802f119f18649.zip
HOPKINS: Bugfix to properly initialise Cache array.
This corrects 'foreground' sprite drawing that draws over the player.
-rw-r--r--engines/hopkins/objects.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/hopkins/objects.cpp b/engines/hopkins/objects.cpp
index a09d4c5d70..62432c8e2f 100644
--- a/engines/hopkins/objects.cpp
+++ b/engines/hopkins/objects.cpp
@@ -4798,7 +4798,7 @@ void ObjectsManager::INILINK(const Common::String &file) {
_vm->_globals.Cache[v11].field4 = v10;
_vm->_globals.Cache[v11].field12 = 1;
- if (_vm->_globals.CACHE_BANQUE[1]) {
+ if (!_vm->_globals.CACHE_BANQUE[1]) {
_vm->_globals.Cache[v40].fieldA = 0;
} else {
v12 = v8;
@@ -4813,6 +4813,7 @@ void ObjectsManager::INILINK(const Common::String &file) {
if (!_vm->_globals.Cache[v40].field0 && !_vm->_globals.Cache[v40].field4
&& !_vm->_globals.Cache[v40].field2)
_vm->_globals.Cache[v40].fieldA = 0;
+
v36 += 5;
++v40;
} while (v40 <= 21);