aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Entities/Taxi/TaxiPathGraph.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Entities/Taxi/TaxiPathGraph.cpp b/src/server/game/Entities/Taxi/TaxiPathGraph.cpp
index 7c6f0c388a4..62d249cc5c0 100644
--- a/src/server/game/Entities/Taxi/TaxiPathGraph.cpp
+++ b/src/server/game/Entities/Taxi/TaxiPathGraph.cpp
@@ -136,7 +136,7 @@ size_t TaxiPathGraph::GetCompleteNodeRoute(uint32_t sourceNodeID, uint32_t desti
try
{
auto wow_custom_weight_map = boost::make_transform_value_property_map(
- [](float w) { return w>MaxFlightDistanceThreshold ? std::numeric_limits<cost>::infinity() : w; },
+ [](float w) { return w>MaxFlightDistanceThreshold ? w*1000 : w; },
boost::get(boost::edge_weight, m_graph)
);
boost::astar_search(m_graph, start,