mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Compile bug fixes.
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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<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;
|
||||
|
||||
@@ -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<TravelNode*> TravelNodeMap::getNodes(WorldPosition pos, float range)
|
||||
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 y = pos.getY();
|
||||
|
||||
Reference in New Issue
Block a user