mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Codestyle fix (#1797)
Warning: Dont change this PR as draft to make it testable DONT REVIEW UNTIL Codestyle C++ workflow dont pass
This commit is contained in:
@@ -180,7 +180,7 @@ uint32 TravelNodePath::getPrice()
|
||||
|
||||
if (!taxiPath)
|
||||
return 0;
|
||||
|
||||
|
||||
return taxiPath->price;
|
||||
}
|
||||
|
||||
@@ -470,7 +470,6 @@ bool TravelNode::cropUselessLinks()
|
||||
for (auto& firstLink : getLinks())
|
||||
{
|
||||
|
||||
|
||||
TravelNode* firstNode = firstLink.first;
|
||||
float firstLength = firstLink.second.getDistance();
|
||||
for (auto& secondLink : getLinks())
|
||||
@@ -1302,7 +1301,7 @@ TravelNodeRoute TravelNodeMap::getRoute(TravelNode* start, TravelNode* goal, Pla
|
||||
return TravelNodeRoute(path);
|
||||
}
|
||||
|
||||
for (const auto& link : *currentNode->dataNode->getLinks()) // for each successor n' of n
|
||||
for (auto const& link : *currentNode->dataNode->getLinks()) // for each successor n' of n
|
||||
{
|
||||
TravelNode* linkNode = link.first;
|
||||
float linkCost = link.second->getCost(bot, currentNode->currentGold);
|
||||
@@ -1351,7 +1350,7 @@ TravelNodeRoute TravelNodeMap::getRoute(WorldPosition startPos, WorldPosition en
|
||||
std::vector<WorldPosition> newStartPath;
|
||||
std::vector<TravelNode*> startNodes = m_nodes, endNodes = m_nodes;
|
||||
|
||||
if(!startNodes.size() || !endNodes.size())
|
||||
if (!startNodes.size() || !endNodes.size())
|
||||
return TravelNodeRoute();
|
||||
|
||||
// Partial sort to get the closest 5 nodes at the begin of the array.
|
||||
@@ -1902,7 +1901,7 @@ void TravelNodeMap::generateTransportNodes()
|
||||
|
||||
// if (data->displayId == 3015)
|
||||
// pos.setZ(pos.getZ() + 6.0f);
|
||||
// else if(data->displayId == 3031)
|
||||
// else if (data->displayId == 3031)
|
||||
// pos.setZ(pos.getZ() - 17.0f);
|
||||
|
||||
if (prevNode)
|
||||
|
||||
Reference in New Issue
Block a user