]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Clear goal stack when choosing a new route, not when changing roles.
authormand1nga <mand1nga@xonotic.org>
Tue, 7 Dec 2010 23:52:35 +0000 (20:52 -0300)
committermand1nga <mand1nga@xonotic.org>
Tue, 7 Dec 2010 23:52:35 +0000 (20:52 -0300)
qcsrc/server/bot/havocbot/roles.qc
qcsrc/server/bot/navigation.qc

index cfd0503985f5d2a39d25ea3dc606f49c9932da42..514c364ac723963e1617e17ee3bc5ac28287bbf6 100644 (file)
@@ -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();
index f3e5c26a8faf412d40aca941a619dddeb0f51e51..9e1a92a22249465776fba51660cd37bc25d96191 100644 (file)
@@ -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);
 };