diff options
author | Paul Gilbert | 2012-10-25 12:43:14 +1100 |
---|---|---|
committer | Paul Gilbert | 2012-10-25 12:43:14 +1100 |
commit | 5445866fb52a963a3ac52ab629e802f119f18649 (patch) | |
tree | 0cfa1fbeec07bcd10f723f677b45bb8e6a95453a /engines/hopkins | |
parent | a0b540108d74aa2e8138116adb9614b025183e36 (diff) | |
download | scummvm-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.
Diffstat (limited to 'engines/hopkins')
-rw-r--r-- | engines/hopkins/objects.cpp | 3 |
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); |