diff options
author | Nipun Garg | 2019-06-28 00:07:20 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:02 +0200 |
commit | 091437533e34dae70247106a870f4dd7934221c5 (patch) | |
tree | 12c3efb13ffbaa955579f379c86bb3fc5cf50cbb | |
parent | dfa9a6bb3b1a8518f79f4d6d445b9d96959aeb79 (diff) | |
download | scummvm-rg350-091437533e34dae70247106a870f4dd7934221c5.tar.gz scummvm-rg350-091437533e34dae70247106a870f4dd7934221c5.tar.bz2 scummvm-rg350-091437533e34dae70247106a870f4dd7934221c5.zip |
HDB: Add debug output
-rw-r--r-- | engines/hdb/ai-lists.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/hdb/ai-lists.cpp b/engines/hdb/ai-lists.cpp index a8c69f12d9..df779d5900 100644 --- a/engines/hdb/ai-lists.cpp +++ b/engines/hdb/ai-lists.cpp @@ -91,10 +91,14 @@ void AI::animateTargets() { g_hdb->_map->getMapXY(&mx, &my); debug("animateTargets: Size of _animTargets: %d", _animTargets->size()); + debug("_animTargets:"); for (Common::Array<AnimTarget *>::iterator it = _animTargets->begin(); it != _animTargets->end(); it++) { at = *it; + debug("it - _animTargets->begin(): %d", it - _animTargets->begin()); + debug("at: at->x: %d, at->y: %d, at->start: %d, at->end: %d, at->vel: %d", at->x, at->y, at->start, at->end, at->vel); // Draw Non-Map stuff every frame + if (!at->inMap) // FIXME: Out of bounds reference to gfxList at->gfxList[at->start]->drawMasked(at->x - mx, at->y - my); |