]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
More checks
authormand1nga <mand1nga@xonotic.org>
Tue, 9 Aug 2011 03:56:21 +0000 (00:56 -0300)
committermand1nga <mand1nga@xonotic.org>
Tue, 9 Aug 2011 03:56:21 +0000 (00:56 -0300)
qcsrc/server/bot/havocbot/role_assault.qc

index 57380dd038db1160c7053ef125a930dbb5e5c0ed..edb4995bee5fb50f54d602cc5ba51f1b96e59c20 100644 (file)
@@ -31,6 +31,9 @@ void havocbot_goalrating_ast_targets(float ratingscale)
                if (ad.target == "")
                        continue;
 
+               if(ad.state!=0)
+                       continue;
+
                found = FALSE;
                for(tod = world; (tod = find(tod, targetname, ad.target)); )
                {
@@ -38,7 +41,7 @@ void havocbot_goalrating_ast_targets(float ratingscale)
                        {
                                if(tod.enemy.health > 0 && tod.enemy.health < ASSAULT_VALUE_INACTIVE)
                                {
-                                       dprint(etos(tod.enemy),"\n");
+                               //      dprint(etos(ad),"\n");
                                        found = TRUE;
                                        break;
                                }