]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/sounds/all.qc
Fix some inconsistent indentation in t_items.qc
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / sounds / all.qc
index 203b643854c5d5cf6b7cf0aaba762390ec6fa7e4..fcd4d9a459983fc06a2e35fdb1cd5e8db753e8b9 100644 (file)
@@ -1,11 +1,14 @@
 #include "all.qh"
 #ifdef SVQC
 
+#include <server/utils.qh>
+
 bool autocvar_bot_sound_monopoly;
 
 .entity realowner;
 bool sound_allowed(int to, entity e)
 {
+       if(!e) return true; // save on a few checks
        for ( ; ; )
        {
                if (e.classname == "body") e = e.enemy;