Core/MMaps: Started this new branch as my playground for mmaps.

Made some refactoring
Free memory taken by mmaps when a map is destroyed.
This commit is contained in:
Sebastian Valle committed 2013-10-03 17:47:38 -05:00
1 parent 993513ce8d
commit d74dcabd85
10 files changed
+128 -139

No files matched your search

+1 -1
View File
@@ -187,7 +187,7 @@ public:
uint32 haveMap = Map::ExistMap(mapId, gridX, gridY) ? 1 : 0;
uint32 haveVMap = Map::ExistVMap(mapId, gridX, gridY) ? 1 : 0;
uint32 haveMMap = (MMAP::MMapFactory::IsPathfindingEnabled(mapId) && MMAP::MMapFactory::createOrGetMMapManager()->GetNavMesh(handler->GetSession()->GetPlayer()->GetMapId())) ? 1 : 0;
uint32 haveMMap = (MMAP::MMapFactory::IsPathfindingEnabled(mapId) && MMAP::MMapFactory::CreateOrGetMMapManager()->GetNavMesh(handler->GetSession()->GetPlayer()->GetMapId())) ? 1 : 0;
if (haveVMap)
{