]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
use q3df target_print spawnflags whenever a defi file is present
authorJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Wed, 1 Mar 2023 14:50:57 +0000 (15:50 +0100)
committerJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Wed, 1 Mar 2023 14:50:57 +0000 (15:50 +0100)
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)
        {