minor changes

This commit is contained in:
jeefo 2015-07-11 19:54:46 +03:00
commit 85e618fb1b
11 changed files with 61 additions and 42 deletions

View file

@ -659,6 +659,15 @@ bool Bot::DoWaypointNav (void)
TraceResult tr, tr2;
// check if we fallen from something
if (IsOnFloor () && m_jumpFinished && m_currentWaypointIndex > 0)
{
const Vector &wptOrg = m_currentPath->origin;
if ((pev->origin - wptOrg).GetLength2D () <= 100.0f && (wptOrg.z > pev->origin.z + 20.0f))
m_currentWaypointIndex = -1;
}
// check if we need to find a waypoint...
if (m_currentWaypointIndex == -1)
{