diff options
author | Andrei Prykhodko | 2018-06-30 08:56:05 +0300 |
---|---|---|
committer | Andrei Prykhodko | 2018-06-30 08:56:05 +0300 |
commit | 4938a33fbbdfd4d78571700792fb56e08dde62b9 (patch) | |
tree | 3250b262cd3f8b19e3efee5b911d72b052868f6a /engines/pink/objects/pages | |
parent | f9489be3a9058d8dd22c59af77a450a7b81d56cd (diff) | |
download | scummvm-rg350-4938a33fbbdfd4d78571700792fb56e08dde62b9.tar.gz scummvm-rg350-4938a33fbbdfd4d78571700792fb56e08dde62b9.tar.bz2 scummvm-rg350-4938a33fbbdfd4d78571700792fb56e08dde62b9.zip |
PINK: added pre-loading of global pda page sprites
Diffstat (limited to 'engines/pink/objects/pages')
-rw-r--r-- | engines/pink/objects/pages/pda_page.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/pink/objects/pages/pda_page.cpp b/engines/pink/objects/pages/pda_page.cpp index f8d7e17bbf..a6fa9b1338 100644 --- a/engines/pink/objects/pages/pda_page.cpp +++ b/engines/pink/objects/pages/pda_page.cpp @@ -36,8 +36,10 @@ PDAPage PDAPage::create(const Common::String &pageName, PDAMgr &pdaMgr) { } Array<Actor *> PDAPage::takeActors() { + for (uint i = 0; i < _actors.size(); ++i) { + _actors[i]->preloadSprites(); + } Array<Actor *> actorsCopy = _actors; - _actors.clear(); return actorsCopy; } |