]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/compat/quake3.qc
use q3df target_print spawnflags whenever a defi file is present
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / compat / quake3.qc
index 464bd8c26091a29b491315147ca5c80f859db5c2..68a475e790a88a27bf4e50ccd3dd3ab5ad954e20 100644 (file)
@@ -292,17 +292,17 @@ void target_print_use(entity this, entity actor, entity trigger)
                return;
 
        bool priv, red, blue;
-       if(g_cts || g_race) // use Q3DF spawnflags in race game modes
-       {
-               priv = !boolean(this.spawnflags & PRINT_BROADCAST);
-               red = blue = false;
-       }
-       else // use vanilla Q3 spawnflags otherwise
+       if(!(q3compat & Q3COMPAT_DEFI)) // Q3 spawnflags
        {
                priv = boolean(this.spawnflags & PRINT_PRIVATE);
                red = boolean(this.spawnflags & PRINT_REDTEAM);
                blue = boolean(this.spawnflags & PRINT_BLUETEAM);
        }
+       else // Q3DF spawnflags
+       {
+               priv = !boolean(this.spawnflags & PRINT_BROADCAST);
+               red = blue = false;
+       }
 
        if(priv)
        {