Remove the TRACE() by default in Tileset::remap()

This commit is contained in:
David Capello 2020-07-16 18:34:39 -03:00
parent cd9f95ce98
commit fa8cddfae6

View File

@ -15,6 +15,8 @@
#include <memory>
#define TS_TRACE(...) // TRACE(__VA_ARGS__)
namespace doc {
Tileset::Tileset(Sprite* sprite,
@ -92,7 +94,8 @@ void Tileset::remap(const Remap& remap)
{
Tiles tmp = m_tiles;
for (tile_index ti=0; ti<size(); ++ti) {
TRACE("m_tiles[%d] = tmp[%d]\n", remap[ti], ti);
TS_TRACE("m_tiles[%d] = tmp[%d]\n", remap[ti], ti);
ASSERT(remap[ti] >= 0);
ASSERT(remap[ti] < m_tiles.size());
if (remap[ti] >= 0 &&