aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb
diff options
context:
space:
mode:
authorNipun Garg2019-06-24 16:18:13 +0530
committerEugene Sandulenko2019-09-03 17:16:59 +0200
commitf937418f6d02ce40ab9c776fc687a0fbc1cc922a (patch)
tree6749fe7e34e57ae117b7349f5adfc73c91851eac /engines/hdb
parent91e74dca098bf2b346a02066e255f2c2c515d8d0 (diff)
downloadscummvm-rg350-f937418f6d02ce40ab9c776fc687a0fbc1cc922a.tar.gz
scummvm-rg350-f937418f6d02ce40ab9c776fc687a0fbc1cc922a.tar.bz2
scummvm-rg350-f937418f6d02ce40ab9c776fc687a0fbc1cc922a.zip
HDB: Add debug output
Diffstat (limited to 'engines/hdb')
-rw-r--r--engines/hdb/ai-cinematic.cpp3
-rw-r--r--engines/hdb/ai-funcs.cpp4
2 files changed, 6 insertions, 1 deletions
diff --git a/engines/hdb/ai-cinematic.cpp b/engines/hdb/ai-cinematic.cpp
index a48c43c868..8d502598d3 100644
--- a/engines/hdb/ai-cinematic.cpp
+++ b/engines/hdb/ai-cinematic.cpp
@@ -193,7 +193,8 @@ void AI::processCines() {
warning("Can't locate '%s' in moveEntity", _cine[i]->title);
}
} else {
- debug(3, "C_MOVEENTITY: _cine[%d]->e->goalX: %d", i, _cine[i]->e->goalX);
+ debug(3, "C_MOVEENTITY: _cine[%d]->e->tileX: %d, _cine[%d]->e->goalX: %d", i, _cine[i]->e->tileX, i, _cine[i]->e->goalX);
+ debug(3, "C_MOVEENTITY: _cine[%d]->e->tileY: %d, _cine[%d]->e->goalY: %d", i, _cine[i]->e->tileY, i, _cine[i]->e->goalY);
if (!_cine[i]->e->goalX) {
complete = true;
}
diff --git a/engines/hdb/ai-funcs.cpp b/engines/hdb/ai-funcs.cpp
index cfbe16670d..262fc05a6d 100644
--- a/engines/hdb/ai-funcs.cpp
+++ b/engines/hdb/ai-funcs.cpp
@@ -682,11 +682,15 @@ void AI::animateEntity(AIEntity *e) {
int fgTileFlags, fgTileIndex;
// Move entity if player is not dead
+ debug(3, "Before animateEntity, e->x: %d, e->y: %d", e->x, e->y);
+ debug(3, "Before animateEntity, e->tileX: %d, e->tileY: %d", e->tileX, e->tileY);
if (!_playerDead) {
e->x += e->xVel;
e->y += e->yVel;
e->tileX = e->x / kTileWidth;
e->tileY = e->y / kTileHeight;
+ debug(3, "After animateEntity, e->x: %d, e->y: %d", e->x, e->y);
+ debug(3, "After animateEntity, e->tileX: %d, e->tileY: %d", e->tileX, e->tileY);
}
// For non-players, check for trigger being hit