Compile error fix for latest mangos rev:
diff --git a/src/game/MoveMap.cpp b/src/game/MoveMap.cpp
index 9994f23..c337bf7 100644
--- a/src/game/MoveMap.cpp
+++ b/src/game/MoveMap.cpp
@@ -1,7 +1,7 @@
#include "Map.h"
#include "Log.h"
-#include "Utilities/UnorderedMap.h"
+#include "Utilities/UnorderedMapSet.h"
#include "World.h"
inline uint32 packTileID(uint32 tileX, uint32 tileY) { return tileX<<16 | tileY; }
and maybe we can drop this not used variable and fix some warnings:
--- a/src/game/PathFinder.cpp
+++ b/src/game/PathFinder.cpp
@@ -50,10 +50,8 @@ dtPolyRef PathInfo::getPathPolyByPosition(float x, float y, float z)
bool PathInfo::isPointInPolyBounds(float x, float y, float z, float &distance, dtPolyRef polyRef)
{
float point[3] = {y, z, x};
- int polyindex;
-
const dtMeshTile* tile;
- const dtPoly* poly;
+
if(!m_navMesh->getTileAndPolyByRef(polyRef, &tile, &poly))
return false; // m_pathPolyRefs[i] is invalid
diff --git a/src/game/PathFinder.h b/src/game/PathFinder.h
index 0144ab4..cc53c00 100644
--- a/src/game/PathFinder.h
+++ b/src/game/PathFinder.h
@@ -65,6 +65,8 @@ class PathInfo
dtNavMeshQuery* m_navMeshQuery; // the nav mesh query used to find the path
PathType m_type; // tells what kind of path this is
+ const dtPoly* poly;
+
private:
inline void clear()
{
diff --git a/src/game/debugcmds.cpp b/src/game/debugcmds.cpp
index cf0353d..df1d777 100644
--- a/src/game/debugcmds.cpp
+++ b/src/game/debugcmds.cpp
@@ -366,7 +366,6 @@ bool ChatHandler::HandleDebugMoveMapCommand(const char* args)
// navmesh poly -> navmesh tile location
dtPolyRef polyRef = query->findNearestPoly(location, extents, &(dtQueryFilter()), NULL);
const dtMeshTile* tile;
- const dtPoly* poly;
if(!poly)
PSendSysMessage("Dt [??,??] (invalid poly, probably no tile loaded)");
diff --git a/src/game/Chat.h b/src/game/Chat.h
index bdb12ce..b86e225 100644
--- a/src/game/Chat.h
+++ b/src/game/Chat.h
@@ -651,6 +658,8 @@ class ChatHandler
void HandleCharacterDeletedRestoreHelper(DeletedInfo const& delInfo);
void SetSentErrorMessage(bool val){ sentErrorMessage = val;};
+
+ const dtPoly* poly;
private:
WorldSession * m_session; // != NULL for chat command call and NULL for CLI command