From de14b2337ff9a5a3e620c5d0a75e1df749487e61 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 3 Jul 2005 20:02:56 +0000 Subject: Implementation of sfShowMap. This was latest unimplemented script function :) svn-id: r18487 --- saga/sfuncs.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'saga/sfuncs.cpp') diff --git a/saga/sfuncs.cpp b/saga/sfuncs.cpp index 42c5a4282d..56ec2f69c3 100644 --- a/saga/sfuncs.cpp +++ b/saga/sfuncs.cpp @@ -120,7 +120,7 @@ void Script::setupScriptFuncList(void) { OPCODE(sfPickClimbOutPos), OPCODE(sfTossRif), OPCODE(sfShowControls), - OPCODE(SF_showMap), + OPCODE(sfShowMap), OPCODE(sfPuzzleWon), OPCODE(sfEnableEscape), OPCODE(sfPlaySound), @@ -1643,11 +1643,8 @@ void Script::sfShowControls(SCRIPTFUNC_PARAMS) { } // Script function #67 (0x43) -void Script::SF_showMap(SCRIPTFUNC_PARAMS) { - for (int i = 0; i < nArgs; i++) - thread->pop(); - - debug(0, "STUB: SF_showMap(), %d args", nArgs); +void Script::sfShowMap(SCRIPTFUNC_PARAMS) { + _vm->_interface->setMode(kPanelMap); } // Script function #68 (0x44) -- cgit v1.2.3