From f5dbec368aa392c755749dd1965ffb37f29b4029 Mon Sep 17 00:00:00 2001 From: StormBytePP Date: Mon, 14 Sep 2015 11:02:24 +0200 Subject: Removed infinity from custom_weight function, as it was causing problems in path calculation --- src/server/game/Entities/Taxi/TaxiPathGraph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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::infinity() : w; }, + [](float w) { return w>MaxFlightDistanceThreshold ? w*1000 : w; }, boost::get(boost::edge_weight, m_graph) ); boost::astar_search(m_graph, start, -- cgit v1.2.3