aboutsummaryrefslogtreecommitdiff
path: root/src/game/Map.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-04-12 16:44:44 -0500
committermegamage <none@none>2009-04-12 16:44:44 -0500
commit5032bd159cc0fff5e10d38161ecb5e7469c3d75f (patch)
tree22131e41715b2b3371f661e194fd0cb79264e1dc /src/game/Map.cpp
parent74977d73f3758b866d90ace7f9cf075c2be540fc (diff)
*Add better debug log for grid state.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Map.cpp')
-rw-r--r--src/game/Map.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/Map.cpp b/src/game/Map.cpp
index b7e0fd59f61..b12c7b477c0 100644
--- a/src/game/Map.cpp
+++ b/src/game/Map.cpp
@@ -410,6 +410,8 @@ Map::EnsureGridCreated(const GridPair &p)
Guard guard(*this);
if(!getNGrid(p.x_coord, p.y_coord))
{
+ sLog.outDebug("Loading grid[%u,%u] for map %u", p.x_coord, p.y_coord, i_id);
+
setNGrid(new NGridType(p.x_coord*MAX_NUMBER_OF_GRIDS + p.y_coord, p.x_coord, p.y_coord, i_gridExpiry, sWorld.getConfig(CONFIG_GRID_UNLOAD)),
p.x_coord, p.y_coord);
@@ -1139,7 +1141,7 @@ bool Map::UnloadGrid(const uint32 &x, const uint32 &y, bool unloadAll)
if(!unloadAll && ActiveObjectsNearGrid(x, y) )
return false;
- DEBUG_LOG("Unloading grid[%u,%u] for map %u", x,y, i_id);
+ sLog.outDebug("Unloading grid[%u,%u] for map %u", x,y, i_id);
ObjectGridUnloader unloader(*grid);