]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't change roles while using a jump pad
authormand1nga <mand1nga@xonotic.org>
Tue, 7 Dec 2010 23:53:10 +0000 (20:53 -0300)
committermand1nga <mand1nga@xonotic.org>
Tue, 7 Dec 2010 23:53:10 +0000 (20:53 -0300)
qcsrc/server/bot/havocbot/havocbot.qc

index c1785a8d2754fc25c57fd527d38db2ecb79867ed..a983e696ca3435529808545daaab1005715626f9 100644 (file)
@@ -21,7 +21,8 @@ void havocbot_ai()
                }
                else
                {
-                       self.havocbot_role();
+                       if not(self.jumppadcount)
+                               self.havocbot_role();
                }
 
                // TODO: tracewalk() should take care of this job (better path finding under water)