From 1962d62c1e209af7d61e85a4ed3675f0a16e5924 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 31 Dec 2016 19:20:29 +0300 Subject: Remove some debug code and enable code for report fringe draw errors. --- src/resources/map/maplayer.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/resources/map/maplayer.cpp b/src/resources/map/maplayer.cpp index 8e6841119..5239403ed 100644 --- a/src/resources/map/maplayer.cpp +++ b/src/resources/map/maplayer.cpp @@ -539,7 +539,6 @@ void MapLayer::drawFringe(Graphics *const graphics, { // here need draw special layers only and continue // for now special layer can be not drawed, if skipped before for - //if (tilePtr->count == 0 || x0 + tilePtr->count >= endX) drawSpecialLayer(graphics, y, 0, @@ -586,11 +585,9 @@ void MapLayer::drawFringe(Graphics *const graphics, } else { - // here need draw special layers only and continue - // for now special layer can be not drawed if (x + tilePtr->count + 1 >= endX) break; -// logger->log("error tiles3: (%d,%d) to %d, +%d, %d", x, y, endX, tilePtr->count, tilePtr->nextTile); + logger->log("error tiles3: (%d,%d) to %d, +%d, %d", x, y, endX, tilePtr->count, tilePtr->nextTile); c = tilePtr->count; x += c; tilePtr += c; @@ -648,7 +645,7 @@ void MapLayer::drawFringe(Graphics *const graphics, { if (x + tilePtr->count + 1 >= endX) break; -// logger->log("error tiles4: (%d,%d) to %d, +%d, %d", x, y, endX, tilePtr->count, tilePtr->nextTile); + logger->log("error tiles4: (%d,%d) to %d, +%d, %d", x, y, endX, tilePtr->count, tilePtr->nextTile); const int c = tilePtr->count; x += c; tilePtr += c; -- cgit v1.2.3-60-g2f50