From 2044a71c27da1b45e0c0bcef22b2472a4f68009d Mon Sep 17 00:00:00 2001 From: Strangerke Date: Sun, 10 Feb 2013 11:15:19 +0100 Subject: HOPKINS: (mostly) fix the priority bug in the city map. Still rare visible glitches on the chimney, but the birds are ok!. --- engines/hopkins/globals.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'engines/hopkins/globals.cpp') 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 -- cgit v1.2.3