From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Wed, 1 Mar 2023 14:50:57 +0000 (+0100) Subject: use q3df target_print spawnflags whenever a defi file is present X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=71459dca3769176eb6b14ff6c6c1bf4e397306ca;p=xonotic%2Fxonotic-data.pk3dir.git use q3df target_print spawnflags whenever a defi file is present --- 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) {