From: mand1nga Date: Tue, 7 Dec 2010 23:52:35 +0000 (-0300) Subject: Clear goal stack when choosing a new route, not when changing roles. X-Git-Tag: xonotic-v0.1.0preview~15^2~6 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6d68e7d785c375f9e4df9f6651e95b8ee43e38aa;p=xonotic%2Fxonotic-data.pk3dir.git Clear goal stack when choosing a new route, not when changing roles. --- 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); };