From a43eb567ccc2860326bb3dd8a1ce0247390c6b36 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sat, 7 Jul 2007 01:11:43 +0000 Subject: Clear the cutaway via an event in sfScriptGotoScene, instead of calling the function directly svn-id: r27948 --- engines/saga/sfuncs.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'engines') 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, -- cgit v1.2.3