aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb
diff options
context:
space:
mode:
authorNipun Garg2019-06-18 23:09:13 +0530
committerEugene Sandulenko2019-09-03 17:16:48 +0200
commit70ab42ea7e62e111386067b9e6e9ea319610fd29 (patch)
tree9a5e3bb7704f1a772b985705515d3922a43e8299 /engines/hdb
parent1457383df2c8bb43e0e6917cab9fe816fa6c7162 (diff)
downloadscummvm-rg350-70ab42ea7e62e111386067b9e6e9ea319610fd29.tar.gz
scummvm-rg350-70ab42ea7e62e111386067b9e6e9ea319610fd29.tar.bz2
scummvm-rg350-70ab42ea7e62e111386067b9e6e9ea319610fd29.zip
HDB: Add debug output for C_MOVECAMERA
Diffstat (limited to 'engines/hdb')
-rw-r--r--engines/hdb/ai.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/hdb/ai.cpp b/engines/hdb/ai.cpp
index 182401dc1a..c414fd21b4 100644
--- a/engines/hdb/ai.cpp
+++ b/engines/hdb/ai.cpp
@@ -111,6 +111,8 @@ void AI::processCines() {
}
_cameraX += _cine[i]->xv;
_cameraY += _cine[i]->yv;
+ debug(3, "_cine[%d]->xv: %d, _cine[%d]->yv: %d", i, _cine[i]->xv, i, _cine[i]->yv);
+ debug(3, "C_MOVECAMERA: abs(_cameraX - _cine[i]->x): %d, abs(_cameraY - _cine[i]->y): %d", abs(_cameraX - _cine[i]->x), abs(_cameraY - _cine[i]->y));
if (abs(_cameraX - _cine[i]->x) <= 1 && abs(_cameraY - _cine[i]->y) <= 1) {
_cameraX = _cine[i]->x;
_cameraY = _cine[i]->y;