aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2007-07-07 01:11:43 +0000
committerFilippos Karapetis2007-07-07 01:11:43 +0000
commita43eb567ccc2860326bb3dd8a1ce0247390c6b36 (patch)
tree833f0b5aad8e8ae26316dd096a45ed29c69cf590 /engines
parentc72633b539227dc5a5b7864296a203490f6bea18 (diff)
downloadscummvm-rg350-a43eb567ccc2860326bb3dd8a1ce0247390c6b36.tar.gz
scummvm-rg350-a43eb567ccc2860326bb3dd8a1ce0247390c6b36.tar.bz2
scummvm-rg350-a43eb567ccc2860326bb3dd8a1ce0247390c6b36.zip
Clear the cutaway via an event in sfScriptGotoScene, instead of calling the function directly
svn-id: r27948
Diffstat (limited to 'engines')
-rw-r--r--engines/saga/sfuncs.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/saga/sfuncs.cpp b/engines/saga/sfuncs.cpp
index 4b30d0b406..4954188a6e 100644
--- a/engines/saga/sfuncs.cpp
+++ b/engines/saga/sfuncs.cpp
@@ -565,7 +565,13 @@ void Script::sfScriptGotoScene(SCRIPTFUNC_PARAMS) {
// Since it doesn't look like the IHNM scripts remove the
// cutaway after the intro, this is probably the best place to
// to it.
- _vm->_anim->clearCutaway();
+ Event event;
+ event.type = kEvTImmediate;
+ event.code = kCutawayEvent;
+ event.op = kEventClear;
+ event.time = 0;
+ event.duration = 0;
+ _vm->_events->queue(&event);
}
// It is possible to leave scene when converse panel is on,