diff options
-rw-r--r-- | engines/pink/director.cpp | 10 | ||||
-rw-r--r-- | engines/pink/director.h | 2 | ||||
-rw-r--r-- | engines/pink/pink.cpp | 4 |
3 files changed, 15 insertions, 1 deletions
diff --git a/engines/pink/director.cpp b/engines/pink/director.cpp index 98446c428e..fa333e9b37 100644 --- a/engines/pink/director.cpp +++ b/engines/pink/director.cpp @@ -88,6 +88,12 @@ Director::Director() } void Director::update() { + if (isMenuActive()) { + _wm.draw(); + draw(); + return; + } + for (uint i = 0; i < _sounds.size(); ++i) { _sounds[i]->update(); } @@ -106,6 +112,10 @@ bool Director::processEvent(Common::Event &event) { return _wm.processEvent(event); } +bool Director::isMenuActive() { + return _wm.isMenuActive(); +} + void Director::addSprite(ActionCEL *sprite) { _sprites.push_back(sprite); int i; diff --git a/engines/pink/director.h b/engines/pink/director.h index 803d2638b1..8117343293 100644 --- a/engines/pink/director.h +++ b/engines/pink/director.h @@ -62,6 +62,8 @@ public: void pause(bool pause); + bool isMenuActive(); + void saveStage(); void loadStage(); diff --git a/engines/pink/pink.cpp b/engines/pink/pink.cpp index 1a06d11e3f..f18df012ed 100644 --- a/engines/pink/pink.cpp +++ b/engines/pink/pink.cpp @@ -147,7 +147,9 @@ Common::Error Pink::PinkEngine::run() { } } - _actor->update(); + if (!_director->isMenuActive()) + _actor->update(); + _director->update(); _system->delayMillis(10); } |