]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Check deadflag
authormand1nga <mand1nga@xonotic.org>
Wed, 20 Apr 2011 07:59:31 +0000 (04:59 -0300)
committermand1nga <mand1nga@xonotic.org>
Wed, 20 Apr 2011 07:59:31 +0000 (04:59 -0300)
qcsrc/server/bot/bot.qc

index 5c70af58c7c2ded0bbb76abeb7dd896b9da7d511..d2ee461da6fdaad61c50951ed9dee3ea965420d1 100644 (file)
@@ -98,9 +98,7 @@ void bot_think()
                        self.bot_strategytime = 0;
                }
        }
-
-       //
-       if(self.aistatus & AI_STATUS_STUCK)
+       else if(self.aistatus & AI_STATUS_STUCK)
                navigation_unstuck();
 
        // now call the current bot AI (havocbot for example)