aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/gui/gui.cpp
diff options
context:
space:
mode:
authorMartin Kiewitz2009-10-19 13:26:13 +0000
committerMartin Kiewitz2009-10-19 13:26:13 +0000
commit4ac5e3512501a8effee878bd072caf7875cf20b3 (patch)
tree5ef54be82f68d566daad9bc28a95afddb0ab7da5 /engines/sci/gui/gui.cpp
parenta4704352e4854af6d9ad00ba75178a238f1e8033 (diff)
downloadscummvm-rg350-4ac5e3512501a8effee878bd072caf7875cf20b3.tar.gz
scummvm-rg350-4ac5e3512501a8effee878bd072caf7875cf20b3.tar.bz2
scummvm-rg350-4ac5e3512501a8effee878bd072caf7875cf20b3.zip
SCI/newgui: kAnimate support for globalVar 84 in kq5 to fix cels drawn into talking boxes
svn-id: r45243
Diffstat (limited to 'engines/sci/gui/gui.cpp')
-rw-r--r--engines/sci/gui/gui.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/sci/gui/gui.cpp b/engines/sci/gui/gui.cpp
index 96f15bab09..49d6df2f72 100644
--- a/engines/sci/gui/gui.cpp
+++ b/engines/sci/gui/gui.cpp
@@ -528,8 +528,10 @@ void SciGui::animate(reg_t listReference, bool cycle, int argc, reg_t *argv) {
if (!list)
error("kAnimate called with non-list as parameter");
- if (cycle)
- _animate->invoke(list, argc, argv);
+ if (cycle) {
+ if (!_animate->invoke(list, argc, argv))
+ return;
+ }
GuiPort *oldPort = _gfx->SetPort((GuiPort *)_windowMgr->_picWind);
_animate->disposeLastCast();