aboutsummaryrefslogtreecommitdiff
path: root/engines/pink/objects/pages
diff options
context:
space:
mode:
authorAndrei Prykhodko2018-06-30 08:56:05 +0300
committerAndrei Prykhodko2018-06-30 08:56:05 +0300
commit4938a33fbbdfd4d78571700792fb56e08dde62b9 (patch)
tree3250b262cd3f8b19e3efee5b911d72b052868f6a /engines/pink/objects/pages
parentf9489be3a9058d8dd22c59af77a450a7b81d56cd (diff)
downloadscummvm-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.cpp4
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;
}