aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorNipun Garg2019-07-19 21:13:12 +0530
committerEugene Sandulenko2019-09-03 17:17:24 +0200
commit9d45057630a7351afb642a8bce96bfaa86dc4aa2 (patch)
treebfad6249388dde0c32c976d48a80c0b4753a8960 /engines
parent31ec40a91a16c501c39cbed8fd1d16cd042e4458 (diff)
downloadscummvm-rg350-9d45057630a7351afb642a8bce96bfaa86dc4aa2.tar.gz
scummvm-rg350-9d45057630a7351afb642a8bce96bfaa86dc4aa2.tar.bz2
scummvm-rg350-9d45057630a7351afb642a8bce96bfaa86dc4aa2.zip
HDB: Add Debug Output for Actions List
Diffstat (limited to 'engines')
-rw-r--r--engines/hdb/hdb.cpp8
-rw-r--r--engines/hdb/saveload.cpp8
2 files changed, 16 insertions, 0 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp
index c8b01855dd..d2b874b2e8 100644
--- a/engines/hdb/hdb.cpp
+++ b/engines/hdb/hdb.cpp
@@ -238,6 +238,14 @@ bool HDBGame::restartMap() {
warning("STUB: Cheating - Lua Validation");
+ debug(1, "Action List Info:");
+ for (int k = 0; k < 20; k++) {
+ debug(1, "Action %d: entityName: %s", k, _ai->_actions[k].entityName);
+ debug(1, "Action %d: x1: %d, y1: %d", k, _ai->_actions[k].x1, _ai->_actions[k].y1);
+ debug(1, "Action %d: x2: %d, y2: %d", k, _ai->_actions[k].x2, _ai->_actions[k].y2);
+ debug(1, "Action %d: luaFuncInit: %s, luaFuncUse: %s", k, _ai->_actions[k].luaFuncInit, _ai->_actions[k].luaFuncUse);
+ }
+
return true;
}
diff --git a/engines/hdb/saveload.cpp b/engines/hdb/saveload.cpp
index 548f68c316..1c385b7765 100644
--- a/engines/hdb/saveload.cpp
+++ b/engines/hdb/saveload.cpp
@@ -104,6 +104,14 @@ Common::Error HDBGame::loadGameState(int slot) {
if (!_ai->cinematicsActive())
_gfx->turnOffFade();
+ debug(1, "Action List Info:");
+ for (int k = 0; k < 20; k++) {
+ debug(1, "Action %d: entityName: %s", k, _ai->_actions[k].entityName);
+ debug(1, "Action %d: x1: %d, y1: %d", k, _ai->_actions[k].x1, _ai->_actions[k].y1);
+ debug(1, "Action %d: x2: %d, y2: %d", k, _ai->_actions[k].x2, _ai->_actions[k].y2);
+ debug(1, "Action %d: luaFuncInit: %s, luaFuncUse: %s", k, _ai->_actions[k].luaFuncInit, _ai->_actions[k].luaFuncUse);
+ }
+
return Common::kNoError;
}