From f8963cf550abb6ece7e7c64976dbeabbcac735e0 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 31 Jan 2009 12:26:44 +0000 Subject: Disable GMM Save/Loading when a cut-scene is playing svn-id: r36165 --- engines/lure/animseq.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/engines/lure/animseq.cpp b/engines/lure/animseq.cpp index f9f53b2806..5094c60961 100644 --- a/engines/lure/animseq.cpp +++ b/engines/lure/animseq.cpp @@ -216,6 +216,9 @@ AnimationSequence::~AnimationSequence() { if (_lineRefs != NULL) delete _lineRefs; delete _decodedData; + + // Renable GMM saving/loading now that the animation is done + LureEngine::getReference()._saveLoadAllowed = true; } // show @@ -227,6 +230,9 @@ AnimAbortType AnimationSequence::show() { const AnimSoundSequence *soundFrame = _soundList; int frameCtr = 0; + // Disable GMM saving/loading whilst animation is running + LureEngine::getReference()._saveLoadAllowed = false; + // Loop through displaying the animations while (_pPixels < _pPixelsEnd) { if ((soundFrame != NULL) && (frameCtr == 0)) -- cgit v1.2.3