adjusted finddefendwaypoint search distance

This commit is contained in:
jeefo 2015-07-02 23:45:13 +03:00
commit 187c37c9f7

View file

@ -2113,7 +2113,7 @@ int Bot::FindDefendWaypoint (const Vector &origin)
int distances = g_waypoint->GetPathDistance (srcIndex, i);
// skip wayponts with distance more than 1024 units
if (distances > 1024.0f)
if (distances > 1248.0f)
continue;
TraceLine (g_waypoint->GetPath (i)->origin, g_waypoint->GetPath (posIndex)->origin, true, true, GetEntity (), &tr);
@ -2183,7 +2183,7 @@ int Bot::FindDefendWaypoint (const Vector &origin)
for (int i = 0; i < g_numWaypoints; i++)
{
if ((g_waypoint->GetPath (i)->origin - origin).GetLength () <= 1024.0f && !IsPointOccupied (i))
if ((g_waypoint->GetPath (i)->origin - origin).GetLength () <= 1248.0f && !IsPointOccupied (i))
found.Push (i);
}