Fixed warnings when EXTRA_LOGS are off

This commit is contained in:
Yehonal 2017-09-25 10:54:21 +02:00
parent e687d223ff
commit dcdddf658b
11 changed files with 25 additions and 13 deletions

View file

@ -157,7 +157,6 @@ namespace MMAP
fclose(file);
dtMeshHeader* header = (dtMeshHeader*)data;
dtTileRef tileRef = 0;
dtStatus stat;
@ -172,6 +171,7 @@ namespace MMAP
mmap->mmapLoadedTiles.insert(std::pair<uint32, dtTileRef>(packedGridPos, tileRef));
++loadedTiles;
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
dtMeshHeader* header = (dtMeshHeader*)data;
sLog->outDetail("MMAP:loadMap: Loaded mmtile %03i[%02i,%02i] into %03i[%02i,%02i]", mapId, x, y, mapId, header->x, header->y);
#endif
return true;

View file

@ -74,6 +74,8 @@
#define SIZEFMTD ACE_SIZE_T_FORMAT_SPECIFIER
#define UNUSED(x) (void)(x)
typedef std::int64_t int64;
typedef std::int32_t int32;
typedef std::int16_t int16;