diff options
author | Eugene Sandulenko | 2005-04-21 01:30:07 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2005-04-21 01:30:07 +0000 |
commit | 283a9f35ac294fa10105c7d8c18b57d7a2689e19 (patch) | |
tree | d1d35de8ff26764c87f36d3b7fa6adf3e34cb048 /saga/sfuncs.cpp | |
parent | 7b93b0e079456018fdbc59e780925103ee345ca9 (diff) | |
download | scummvm-rg350-283a9f35ac294fa10105c7d8c18b57d7a2689e19.tar.gz scummvm-rg350-283a9f35ac294fa10105c7d8c18b57d7a2689e19.tar.bz2 scummvm-rg350-283a9f35ac294fa10105c7d8c18b57d7a2689e19.zip |
Add not yet correctly working save/load. Use key F7 for saving
and F8 for loading. Now works only within current scene and restores
to entrance #0 which is wrong.
svn-id: r17726
Diffstat (limited to 'saga/sfuncs.cpp')
-rw-r--r-- | saga/sfuncs.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/saga/sfuncs.cpp b/saga/sfuncs.cpp index 4a2eaf81e8..07c5dd947c 100644 --- a/saga/sfuncs.cpp +++ b/saga/sfuncs.cpp @@ -100,7 +100,7 @@ void Script::setupScriptFuncList(void) { OPCODE(SF_simulSpeech2), OPCODE(sfPlacard), OPCODE(sfPlacardOff), - OPCODE(SF_setProtagState), + OPCODE(sfSetProtagState), OPCODE(sfResumeBgdAnim), OPCODE(SF_throwActor), OPCODE(sfWaitWalk), @@ -1305,11 +1305,10 @@ void Script::sfPlacardOff(SCRIPTFUNC_PARAMS) { } // Script function #50 (0x32) -void Script::SF_setProtagState(SCRIPTFUNC_PARAMS) { - for (int i = 0; i < nArgs; i++) - thread->pop(); +void Script::sfSetProtagState(SCRIPTFUNC_PARAMS) { + int protagState = thread->pop(); - debug(0, "STUB: SF_setProtagState(), %d args", nArgs); + _vm->_actor->setProtagState(protagState); } // Script function #51 (0x33) |