summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-01-03 02:08:12 +0300
committerAndrei Karas <akaras@inbox.ru>2017-01-03 02:08:12 +0300
commit53f0597b9067d7532701c7f85d0d38ff04d6fe67 (patch)
treea9cbf25386c33cf5c73e08e7ae297d0bcb639052
parente533b6872036a2322a720300cc2cfe29a129561e (diff)
downloadplus-53f0597b9067d7532701c7f85d0d38ff04d6fe67.tar.gz
plus-53f0597b9067d7532701c7f85d0d38ff04d6fe67.tar.bz2
plus-53f0597b9067d7532701c7f85d0d38ff04d6fe67.tar.xz
plus-53f0597b9067d7532701c7f85d0d38ff04d6fe67.zip
Replace map layer errors logging to asserts.
-rw-r--r--src/resources/map/maplayer.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/resources/map/maplayer.cpp b/src/resources/map/maplayer.cpp
index 2082961fa..7052d06a4 100644
--- a/src/resources/map/maplayer.cpp
+++ b/src/resources/map/maplayer.cpp
@@ -40,6 +40,8 @@
#include "resources/map/metatile.h"
#include "resources/map/speciallayer.h"
+#include "utils/checkutils.h"
+
#include "debug.h"
MapLayer::MapLayer(const std::string &name,
@@ -155,7 +157,7 @@ void MapLayer::draw(Graphics *const graphics,
{
if (x + tilePtr->count + 1 >= endX)
break;
- logger->log("error tiles: %s (%d,%d) to %d, +%d, %d",
+ reportAlways("error tiles: %s (%d,%d) to %d, +%d, %d",
mName.c_str(),
x, y,
endX,
@@ -606,7 +608,7 @@ void MapLayer::drawFringe(Graphics *const graphics,
{
if (x + tilePtr->count + 1 >= endX)
break;
- logger->log("error tiles1: (%d,%d) to %d, +%d, %d",
+ reportAlways("error tiles1: (%d,%d) to %d, +%d, %d",
x, y,
endX,
tilePtr->count,
@@ -668,7 +670,7 @@ void MapLayer::drawFringe(Graphics *const graphics,
{
if (x + tilePtr->count + 1 >= endX)
break;
- logger->log("error tiles2: (%d,%d) to %d, +%d, %d",
+ reportAlways("error tiles2: (%d,%d) to %d, +%d, %d",
x, y,
endX,
tilePtr->count,