From a09a95c99a6a7ccb7ef66c60dace493eefb3eb86 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Mon, 30 Jul 2007 23:30:08 +0000 Subject: sf92 is not null in the demo version of IHNM svn-id: r28343 --- engines/saga/script.h | 1 + engines/saga/sfuncs.cpp | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/engines/saga/script.h b/engines/saga/script.h index b9864fb227..04181ae7d2 100644 --- a/engines/saga/script.h +++ b/engines/saga/script.h @@ -596,6 +596,7 @@ private: void sf89(SCRIPTFUNC_PARAMS); void sfGetPoints(SCRIPTFUNC_PARAMS); void sfSetGlobalFlag(SCRIPTFUNC_PARAMS); + void sf92(SCRIPTFUNC_PARAMS); void sfClearGlobalFlag(SCRIPTFUNC_PARAMS); void sfTestGlobalFlag(SCRIPTFUNC_PARAMS); void sfSetPoints(SCRIPTFUNC_PARAMS); diff --git a/engines/saga/sfuncs.cpp b/engines/saga/sfuncs.cpp index bbbe7a35ac..b654d97fb1 100644 --- a/engines/saga/sfuncs.cpp +++ b/engines/saga/sfuncs.cpp @@ -230,7 +230,7 @@ static const ScriptFunctionDescription IHNMscriptFunctionsList[IHNM_SCRIPT_FUNCT OPCODE(sf89), OPCODE(sfVstopFX), OPCODE(sfVstopLoopedFX), - OPCODE(sfNull), + OPCODE(sf92), // only used in the demo version of IHNM OPCODE(sfDemoIsInteractive), OPCODE(sfVsetTrack), OPCODE(sfGetPoints), @@ -2109,6 +2109,11 @@ void Script::sfVstopLoopedFX(SCRIPTFUNC_PARAMS) { _vm->_sound->stopSound(); } +void Script::sf92(SCRIPTFUNC_PARAMS) { + SF_stub("sf92", thread, nArgs); + // This opcode is empty in the full version of IHNM, but it's not empty in the demo +} + void Script::sfDemoIsInteractive(SCRIPTFUNC_PARAMS) { thread->_returnValue = 0; } -- cgit v1.2.3