diff --git a/src/TravelMgr.cpp b/src/TravelMgr.cpp index cf24d85a..2feee049 100644 --- a/src/TravelMgr.cpp +++ b/src/TravelMgr.cpp @@ -350,7 +350,7 @@ Map* WorldPosition::getMap() return sMapMgr->FindMap(GetMapId(), getMapEntry()->Instanceable() ? getInstanceId() : 0); } -const float WorldPosition::getHeight() +float WorldPosition::getHeight() // remove const - whipowill { return getMap()->GetHeight(getX(), getY(), getZ()); } diff --git a/src/TravelNode.cpp b/src/TravelNode.cpp index 0d9da41c..8a799fff 100644 --- a/src/TravelNode.cpp +++ b/src/TravelNode.cpp @@ -579,7 +579,7 @@ bool TravelNode::isEqual(TravelNode* compareNode) return true; } -void TravelNode::print(bool printFailed) +void TravelNode::print([[maybe_unused]] bool printFailed) // unused param - whipowill { WorldPosition* startPosition = getPosition(); @@ -901,7 +901,7 @@ float TravelNodeRoute::getTotalDistance() return totalLength; } -TravelPath TravelNodeRoute::buildPath(std::vector pathToStart, std::vector pathToEnd, Unit* bot) +TravelPath TravelNodeRoute::buildPath(std::vector pathToStart, std::vector pathToEnd, [[maybe_unused]] Unit* bot) // unused param - whipowill { TravelPath travelPath; @@ -1036,7 +1036,7 @@ TravelNodeMap::TravelNodeMap(TravelNodeMap* baseMap) 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; @@ -1124,7 +1124,7 @@ std::vector TravelNodeMap::getNodes(WorldPosition pos, float range) return std::move(retVec); } -TravelNode* TravelNodeMap::getNode(WorldPosition pos, std::vector& ppath, Unit* bot, float range) +TravelNode* TravelNodeMap::getNode(WorldPosition pos, [[maybe_unused]] std::vector& ppath, Unit* bot, float range) // unused param - whipowill { float x = pos.getX(); float y = pos.getY();