fixed FindNearest() default value to use with squared length's

This commit is contained in:
jeefo 2015-08-03 00:31:37 +03:00
commit 95a02680ca
2 changed files with 2 additions and 2 deletions

View file

@ -168,7 +168,7 @@ TacticChoosen:
// force bomber to select closest goal, if round-start goal was reset by something
if (m_hasC4 && g_timeRoundStart + 20.0f < GetWorldTime ())
{
float minDist = 999999.0f;
float minDist = 99999999.0f;
int count = 0;
for (int i = 0; i < g_numWaypoints; i++)