diff options
-rw-r--r-- | saga/resnames.h | 1 | ||||
-rw-r--r-- | saga/sfuncs.cpp | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/saga/resnames.h b/saga/resnames.h index 3922267255..ec75d01e14 100644 --- a/saga/resnames.h +++ b/saga/resnames.h @@ -156,7 +156,6 @@ namespace Saga { // 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. -// They appear to be a bit off right now. #define FX_CROWD_01 56 #define FX_CROWD_02 57 diff --git a/saga/sfuncs.cpp b/saga/sfuncs.cpp index 674d3a0f82..9cbda863e8 100644 --- a/saga/sfuncs.cpp +++ b/saga/sfuncs.cpp @@ -723,7 +723,7 @@ int Script::SF_getActorY(R_SCRIPTFUNC_PARAMS) { // Script function #63 (0x3F) int Script::SF_playMusic(R_SCRIPTFUNC_PARAMS) { - SDataWord_T param = thread->pop(); + SDataWord_T param = thread->pop() + 9; if (param >= 9 && param <= 34) _vm->_music->play(param); @@ -806,7 +806,7 @@ static struct { // Script function #70 (0x46) int Script::SF_playSound(R_SCRIPTFUNC_PARAMS) { - SDataWord_T param = thread->pop() - 14; + SDataWord_T param = thread->pop() - 13; if (/* param >= 0 && */ param < ARRAYSIZE(sfxTable)) _vm->_sndRes->playSound(sfxTable[param].res, sfxTable[param].vol); |