diff options
author | Strangerke | 2013-02-10 11:15:19 +0100 |
---|---|---|
committer | Strangerke | 2013-02-10 11:15:19 +0100 |
commit | 2044a71c27da1b45e0c0bcef22b2472a4f68009d (patch) | |
tree | c708f3d7df9cbe263fe44df2fcae3152bec897e1 /engines/hopkins/globals.cpp | |
parent | d102511da621426e7c8f31f8f0eacd9bda2ce29f (diff) | |
download | scummvm-rg350-2044a71c27da1b45e0c0bcef22b2472a4f68009d.tar.gz scummvm-rg350-2044a71c27da1b45e0c0bcef22b2472a4f68009d.tar.bz2 scummvm-rg350-2044a71c27da1b45e0c0bcef22b2472a4f68009d.zip |
HOPKINS: (mostly) fix the priority bug in the city map. Still rare visible glitches on the chimney, but the birds are ok!.
Diffstat (limited to 'engines/hopkins/globals.cpp')
-rw-r--r-- | engines/hopkins/globals.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/engines/hopkins/globals.cpp b/engines/hopkins/globals.cpp index 68ff012076..5a44ce8788 100644 --- a/engines/hopkins/globals.cpp +++ b/engines/hopkins/globals.cpp @@ -405,11 +405,15 @@ void Globals::CACHE_ON() { _cacheFl = true; } -// TODO: Find why some calls have a parameter value -void Globals::CACHE_OFF(int v1) { +void Globals::CACHE_OFF() { _cacheFl = false; } +void Globals::B_CACHE_OFF(int idx) { + assert(idx < 36); + _bob[idx].field34 = true; +} + void Globals::CACHE_SUB(int idx) { Cache[idx]._useCount = 0; } @@ -459,9 +463,4 @@ void Globals::loadCache(const Common::String &file) { freeMemory(v2); } -void Globals::B_CACHE_OFF(int idx) { - _bob[idx].field34 = true; -} - - } // End of namespace Hopkins |