From a2593f58bb6274873bc2b64a8f9363df8d1919c8 Mon Sep 17 00:00:00 2001 From: jeefo Date: Thu, 2 Jul 2015 23:12:36 +0300 Subject: [PATCH] don't do local avoidance if sees enemy or round start time < 10 --- source/navigate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/navigate.cpp b/source/navigate.cpp index cb13fa0..a35f501 100644 --- a/source/navigate.cpp +++ b/source/navigate.cpp @@ -319,7 +319,7 @@ void Bot::ResetCollideState (void) void Bot::CheckCloseAvoidance (const Vector &dirNormal) { - if (m_seeEnemyTime + 1.0f > GetWorldTime ()) + if (m_seeEnemyTime + 1.0f < GetWorldTime () || g_timeRoundStart + 10.0f < GetWorldTime ()) return; edict_t *nearest = NULL;