mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 07:18:37 +00:00
Switch path stuff to vectors
This should be more CPU cache friendly compared to lists so should be faster. (profiling looked promising)
This commit is contained in:
+1
-1
@@ -158,7 +158,7 @@ void Mob::CalculateNewFearpoint()
|
||||
|
||||
Map::Vertex CurrentPosition(GetX(), GetY(), GetZ());
|
||||
|
||||
std::list<int> Route = zone->pathing->FindRoute(CurrentPosition, Loc);
|
||||
std::vector<int> Route = zone->pathing->FindRoute(CurrentPosition, Loc);
|
||||
|
||||
if(Route.size() > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user