diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-01-03 02:08:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-01-03 02:08:12 +0300 |
commit | 53f0597b9067d7532701c7f85d0d38ff04d6fe67 (patch) | |
tree | a9cbf25386c33cf5c73e08e7ae297d0bcb639052 | |
parent | e533b6872036a2322a720300cc2cfe29a129561e (diff) | |
download | mv-53f0597b9067d7532701c7f85d0d38ff04d6fe67.tar.gz mv-53f0597b9067d7532701c7f85d0d38ff04d6fe67.tar.bz2 mv-53f0597b9067d7532701c7f85d0d38ff04d6fe67.tar.xz mv-53f0597b9067d7532701c7f85d0d38ff04d6fe67.zip |
Replace map layer errors logging to asserts.
-rw-r--r-- | src/resources/map/maplayer.cpp | 8 |
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, |