aboutsummaryrefslogtreecommitdiff
path: root/engines/prince/script.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2018-05-06 07:39:43 +0200
committerEugene Sandulenko2018-05-06 19:33:45 +0200
commit9a5ba52e6b0865c11258d0fec27796279ff83c34 (patch)
tree52fbaa65521611001295b0896f6091e27728ee51 /engines/prince/script.cpp
parentc6872dcf5299ef22a1ca0bfe7bbc2296f2e98868 (diff)
downloadscummvm-rg350-9a5ba52e6b0865c11258d0fec27796279ff83c34.tar.gz
scummvm-rg350-9a5ba52e6b0865c11258d0fec27796279ff83c34.tar.bz2
scummvm-rg350-9a5ba52e6b0865c11258d0fec27796279ff83c34.zip
PRINCE: Cleanup debug output
Diffstat (limited to 'engines/prince/script.cpp')
-rw-r--r--engines/prince/script.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/engines/prince/script.cpp b/engines/prince/script.cpp
index d6d325181c..2581dde1c1 100644
--- a/engines/prince/script.cpp
+++ b/engines/prince/script.cpp
@@ -222,7 +222,7 @@ void Script::setObjId(int roomObjOffset, int slot, byte objectId) {
}
int Script::scanMobEvents(int mobMask, int dataEventOffset) {
- debug("mobMask: %d", mobMask);
+ debug(3, "scanMobEvents: mobMask: %d", mobMask);
int i = 0;
int16 mob;
int32 code;
@@ -230,7 +230,7 @@ int Script::scanMobEvents(int mobMask, int dataEventOffset) {
mob = (int)READ_LE_UINT16(&_data[dataEventOffset + i * 6]);
if (mob == mobMask) {
code = (int)READ_LE_UINT32(&_data[dataEventOffset + i * 6 + 2]);
- debug("code: %d", code);
+ debug(3, "scanMobEvents: code: %d", code);
return code;
}
i++;
@@ -239,7 +239,7 @@ int Script::scanMobEvents(int mobMask, int dataEventOffset) {
}
int Script::scanMobEventsWithItem(int mobMask, int dataEventOffset, int itemMask) {
- debug("mobMask: %d", mobMask);
+ debug(3, "scanMobEventsWithItem: mobMask: %d", mobMask);
int i = 0;
int16 mob;
int16 item;
@@ -250,8 +250,8 @@ int Script::scanMobEventsWithItem(int mobMask, int dataEventOffset, int itemMask
item = (int)READ_LE_UINT16(&_data[dataEventOffset + i * 8 + 2]);
if (item == itemMask) {
code = (int)READ_LE_UINT32(&_data[dataEventOffset + i * 8 + 4]);
- debug("itemMask: %d", item);
- debug("code: %d", code);
+ debug(3, "scanMobEventsWithItem: itemMask: %d", item);
+ debug(3, "scanMobEventsWithItem: code: %d", code);
return code;
}
}
@@ -388,7 +388,7 @@ bool Script::loadAllMasks(Common::Array<Mask> &maskList, int offset) {
tempMask._width = 0;
tempMask._height = 0;
tempMask._data = nullptr;
- debug("Can't load %s", msStreamName.c_str());
+ warning("loadAllMasks: Can't load %s", msStreamName.c_str());
delete msStream;
} else {
msStream = Resource::getDecompressedStream(msStream);
@@ -452,11 +452,9 @@ void Interpreter::debugInterpreter(const char *s, ...) {
Common::String str = Common::String::format("@0x%08X: ", _lastInstruction);
str += Common::String::format("op %04d: ", _lastOpcode);
- //debugC(10, DebugChannel::kScript, "PrinceEngine::Script %s %s", str.c_str(), buf);
if (!strcmp(_mode, "fg")) {
debug(10, "PrinceEngine::Script %s %s", str.c_str(), buf);
}
- //debug("Prince::Script mode %s %s %s", _mode, str.c_str(), buf);
}
void Interpreter::stepBg() {