]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/bot/aim.qc
Use STAT(FROZEN, e) instead of e.frozen
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / bot / aim.qc
index d8d7d1b92b346f5864f0f43ade890387551dcc25..0692659370063b1789b2de2e0d39fe698b48f5a1 100644 (file)
@@ -117,7 +117,7 @@ float bot_shouldattack(entity e)
                        return false;
        }
 
-       if(e.frozen)
+       if(STAT(FROZEN, e))
                return false;
 
        if(teamplay)
@@ -131,7 +131,7 @@ float bot_shouldattack(entity e)
 
        if (!e.takedamage)
                return false;
-       if (e.deadflag)
+       if (IS_DEAD(e))
                return false;
        if (e.BUTTON_CHAT)
                return false;