From 86c6d23b5da106fef853d668d89adffd52806a0f Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 8 Jun 2019 13:28:20 +0200 Subject: HDB: Added debug output to tile lookup --- engines/hdb/draw-manager.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines/hdb') diff --git a/engines/hdb/draw-manager.cpp b/engines/hdb/draw-manager.cpp index 64c4c62575..bc08e0f528 100644 --- a/engines/hdb/draw-manager.cpp +++ b/engines/hdb/draw-manager.cpp @@ -85,9 +85,11 @@ bool DrawMan::init() { Tile *DrawMan::getTile(int index) { if (index < 0 || index > _numTiles) { + debug(6, "getTile(%d): wrong index > %d", index, _numTiles); return NULL; } if (_tLookupArray[index].skyIndex) { + debug(6, "getTile(%d): sky tile (%d)", index, _tLookupArray[index].skyIndex); // We don't draw Sky Tiles, so return NULL return NULL; } -- cgit v1.2.3