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:
Michael Cook (mackal)
2014-12-17 01:52:00 -05:00
parent 5099010840
commit a14f8058da
7 changed files with 39 additions and 38 deletions
+1 -1
View File
@@ -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)
{