aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--saga/actor.cpp4
-rw-r--r--saga/sfuncs.cpp2
-rw-r--r--saga/sthread.cpp2
3 files changed, 6 insertions, 2 deletions
diff --git a/saga/actor.cpp b/saga/actor.cpp
index 2bd8e3f7f0..83ae60fa20 100644
--- a/saga/actor.cpp
+++ b/saga/actor.cpp
@@ -1550,7 +1550,9 @@ bool Actor::getSpriteParams(CommonObjectData *commonObjectData, int &frameNumber
}
if ((frameNumber < 0) || (spriteList->spriteCount <= frameNumber)) {
- warning("Actor::getSpriteParams frameNumber invalid for object id 0x%X (%d)", commonObjectData->_id, frameNumber);
+ warning("Actor::getSpriteParams frameNumber invalid for %s id 0x%X (%d)",
+ validObjId(commonObjectData->_id) ? "object" : "actor",
+ commonObjectData->_id, frameNumber);
return false;
}
return true;
diff --git a/saga/sfuncs.cpp b/saga/sfuncs.cpp
index e594897804..9cba020888 100644
--- a/saga/sfuncs.cpp
+++ b/saga/sfuncs.cpp
@@ -1895,6 +1895,8 @@ void Script::sfVsetTrack(SCRIPTFUNC_PARAMS) {
int16 sceneNumber = thread->pop();
int16 actorsEntrance = thread->pop();
+ debug(2, "sfVsetTrrack(%d, %d, %d)", chapter, sceneNumber, actorsEntrance);
+
_vm->_scene->changeScene(sceneNumber, actorsEntrance, kTransitionFade, chapter);
}
diff --git a/saga/sthread.cpp b/saga/sthread.cpp
index 8cd6cb0977..d2b0d8c8d5 100644
--- a/saga/sthread.cpp
+++ b/saga/sthread.cpp
@@ -342,7 +342,7 @@ bool Script::runThread(ScriptThread *thread, uint instructionLimit) {
error("Script::runThread() Invalid script function number (%d)", functionNumber);
}
- debug(8, "Calling #%d %s argCount=%i", functionNumber, _scriptFunctionsList[functionNumber].scriptFunctionName, argumentsCount);
+ debug(2, "Calling #%d %s argCount=%i", functionNumber, _scriptFunctionsList[functionNumber].scriptFunctionName, argumentsCount);
scriptFunction = _scriptFunctionsList[functionNumber].scriptFunction;
checkStackTopIndex = thread->_stackTopIndex + argumentsCount;
disContinue = false;