aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2009-01-31 12:26:44 +0000
committerPaul Gilbert2009-01-31 12:26:44 +0000
commitf8963cf550abb6ece7e7c64976dbeabbcac735e0 (patch)
tree2767ff89a17f41a394ca6ef12739bcf6aa6325e1
parente2baabcab918165e4fc09345ad48343111342ba8 (diff)
downloadscummvm-rg350-f8963cf550abb6ece7e7c64976dbeabbcac735e0.tar.gz
scummvm-rg350-f8963cf550abb6ece7e7c64976dbeabbcac735e0.tar.bz2
scummvm-rg350-f8963cf550abb6ece7e7c64976dbeabbcac735e0.zip
Disable GMM Save/Loading when a cut-scene is playing
svn-id: r36165
-rw-r--r--engines/lure/animseq.cpp6
1 files changed, 6 insertions, 0 deletions
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))