Compile bug fixes.

This commit is contained in:
whipowill
2022-05-18 15:48:03 -05:00
parent 972735747d
commit 16ef1fc76c
2 changed files with 5 additions and 5 deletions

View File

@@ -350,7 +350,7 @@ Map* WorldPosition::getMap()
return sMapMgr->FindMap(GetMapId(), getMapEntry()->Instanceable() ? getInstanceId() : 0); return sMapMgr->FindMap(GetMapId(), getMapEntry()->Instanceable() ? getInstanceId() : 0);
} }
const float WorldPosition::getHeight() float WorldPosition::getHeight() // remove const - whipowill
{ {
return getMap()->GetHeight(getX(), getY(), getZ()); return getMap()->GetHeight(getX(), getY(), getZ());
} }

View File

@@ -579,7 +579,7 @@ bool TravelNode::isEqual(TravelNode* compareNode)
return true; return true;
} }
void TravelNode::print(bool printFailed) void TravelNode::print([[maybe_unused]] bool printFailed) // unused param - whipowill
{ {
WorldPosition* startPosition = getPosition(); WorldPosition* startPosition = getPosition();
@@ -901,7 +901,7 @@ float TravelNodeRoute::getTotalDistance()
return totalLength; return totalLength;
} }
TravelPath TravelNodeRoute::buildPath(std::vector<WorldPosition> pathToStart, std::vector<WorldPosition> pathToEnd, Unit* bot) TravelPath TravelNodeRoute::buildPath(std::vector<WorldPosition> pathToStart, std::vector<WorldPosition> pathToEnd, [[maybe_unused]] Unit* bot) // unused param - whipowill
{ {
TravelPath travelPath; TravelPath travelPath;
@@ -1036,7 +1036,7 @@ TravelNodeMap::TravelNodeMap(TravelNodeMap* baseMap)
baseMap->m_nMapMtx.unlock_shared(); baseMap->m_nMapMtx.unlock_shared();
} }
TravelNode* TravelNodeMap::addNode(WorldPosition pos, std::string const preferedName, bool isImportant, bool checkDuplicate, bool transport,uint32 transportId) TravelNode* TravelNodeMap::addNode(WorldPosition pos, std::string const preferedName, bool isImportant, bool checkDuplicate, [[maybe_unused]] bool transport, [[maybe_unused]] uint32 transportId) // unused params - whipowill
{ {
TravelNode* newNode; TravelNode* newNode;
@@ -1124,7 +1124,7 @@ std::vector<TravelNode*> TravelNodeMap::getNodes(WorldPosition pos, float range)
return std::move(retVec); return std::move(retVec);
} }
TravelNode* TravelNodeMap::getNode(WorldPosition pos, std::vector<WorldPosition>& ppath, Unit* bot, float range) TravelNode* TravelNodeMap::getNode(WorldPosition pos, [[maybe_unused]] std::vector<WorldPosition>& ppath, Unit* bot, float range) // unused param - whipowill
{ {
float x = pos.getX(); float x = pos.getX();
float y = pos.getY(); float y = pos.getY();