summaryrefslogtreecommitdiff
path: root/src/resources/map
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-31 19:20:29 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-31 19:20:29 +0300
commit1962d62c1e209af7d61e85a4ed3675f0a16e5924 (patch)
tree53617778f80fc49d31b91ca3c9746b3ed48ac3ce /src/resources/map
parent3d2518d7fb6085a17e4a818e12ce2bc559977169 (diff)
downloadplus-1962d62c1e209af7d61e85a4ed3675f0a16e5924.tar.gz
plus-1962d62c1e209af7d61e85a4ed3675f0a16e5924.tar.bz2
plus-1962d62c1e209af7d61e85a4ed3675f0a16e5924.tar.xz
plus-1962d62c1e209af7d61e85a4ed3675f0a16e5924.zip
Remove some debug code and enable code for report fringe draw errors.
Diffstat (limited to 'src/resources/map')
-rw-r--r--src/resources/map/maplayer.cpp7
1 files 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;