From 71459dca3769176eb6b14ff6c6c1bf4e397306ca Mon Sep 17 00:00:00 2001 From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Wed, 1 Mar 2023 15:50:57 +0100 Subject: [PATCH] use q3df target_print spawnflags whenever a defi file is present --- qcsrc/server/compat/quake3.qc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/qcsrc/server/compat/quake3.qc b/qcsrc/server/compat/quake3.qc index 464bd8c26..68a475e79 100644 --- a/qcsrc/server/compat/quake3.qc +++ b/qcsrc/server/compat/quake3.qc @@ -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) { -- 2.39.2