From: mand1nga Date: Tue, 9 Aug 2011 03:56:21 +0000 (-0300) Subject: More checks X-Git-Tag: xonotic-v0.5.0~122^2^2~6 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e7987577d8cb8eab40457389950e0297d2a89582;p=xonotic%2Fxonotic-data.pk3dir.git More checks --- diff --git a/qcsrc/server/bot/havocbot/role_assault.qc b/qcsrc/server/bot/havocbot/role_assault.qc index 57380dd03..edb4995be 100644 --- a/qcsrc/server/bot/havocbot/role_assault.qc +++ b/qcsrc/server/bot/havocbot/role_assault.qc @@ -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; }