From 6d68e7d785c375f9e4df9f6651e95b8ee43e38aa Mon Sep 17 00:00:00 2001 From: mand1nga Date: Tue, 7 Dec 2010 20:52:35 -0300 Subject: [PATCH] Clear goal stack when choosing a new route, not when changing roles. --- qcsrc/server/bot/havocbot/roles.qc | 1 - qcsrc/server/bot/navigation.qc | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/server/bot/havocbot/roles.qc b/qcsrc/server/bot/havocbot/roles.qc index cfd0503985..514c364ac7 100644 --- a/qcsrc/server/bot/havocbot/roles.qc +++ b/qcsrc/server/bot/havocbot/roles.qc @@ -315,7 +315,6 @@ void havocbot_chooserole_ka() void havocbot_chooserole() { dprint("choosing a role...\n"); - navigation_clearroute(); self.bot_strategytime = 0; if (g_ctf) havocbot_chooserole_ctf(); diff --git a/qcsrc/server/bot/navigation.qc b/qcsrc/server/bot/navigation.qc index f3e5c26a8f..9e1a92a222 100644 --- a/qcsrc/server/bot/navigation.qc +++ b/qcsrc/server/bot/navigation.qc @@ -897,6 +897,7 @@ void navigation_goalrating_start() self.navigation_jetpack_goal = world; navigation_bestrating = -1; self.navigation_hasgoals = FALSE; + navigation_clearroute(); navigation_bestgoal = world; navigation_markroutes(world); }; -- 2.39.2