From e58a097acfd231f36eda89f76b385c7c13d58ded Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 20 Oct 2004 22:38:24 +0000 Subject: FX_CROWD constants are correct. Add some simple stub. svn-id: r15621 --- saga/resnames.h | 3 +-- saga/script.h | 1 + saga/sfuncs.cpp | 8 +++++++- 3 files changed, 9 insertions(+), 3 deletions(-) (limited to 'saga') diff --git a/saga/resnames.h b/saga/resnames.h index ec75d01e14..0d038d9a6e 100644 --- a/saga/resnames.h +++ b/saga/resnames.h @@ -154,8 +154,7 @@ namespace Saga { #define FX_JAIL_DOOR 54 #define FX_KILN_FIRE 55 -// TODO: These are only in the CD version, and I can't find them in the source -// code we got. Someone needs to verify these to get the correct values. +// These are only in the CD version #define FX_CROWD_01 56 #define FX_CROWD_02 57 diff --git a/saga/script.h b/saga/script.h index 1ca262d060..c5b666339e 100644 --- a/saga/script.h +++ b/saga/script.h @@ -274,6 +274,7 @@ private: int SF_getActorX(R_SCRIPTFUNC_PARAMS); int SF_getActorY(R_SCRIPTFUNC_PARAMS); int SF_playMusic(R_SCRIPTFUNC_PARAMS); + int SF_enableEscape(R_SCRIPTFUNC_PARAMS); int SF_playSound(R_SCRIPTFUNC_PARAMS); }; diff --git a/saga/sfuncs.cpp b/saga/sfuncs.cpp index 9cbda863e8..84daf5b547 100644 --- a/saga/sfuncs.cpp +++ b/saga/sfuncs.cpp @@ -112,7 +112,7 @@ void Script::setupScriptFuncList(void) { {66, 0, NULL}, {67, 0, NULL}, {68, 0, NULL}, - {69, 0, NULL}, + {69, 1, OPCODE(SF_enableEscape)}, {70, 1, OPCODE(SF_playSound)}, {71, 0, NULL}, {72, 0, NULL}, @@ -733,6 +733,12 @@ int Script::SF_playMusic(R_SCRIPTFUNC_PARAMS) { return R_SUCCESS; } +// Script function #69 +int Script::SF_enableEscape(R_SCRIPTFUNC_PARAMS) { + thread->pop(); + return R_SUCCESS; +} + static struct { int res; int vol; -- cgit v1.2.3