From 201c74e481db7b85a9a9b198da9fd00b4a4092a4 Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 14 Jul 2020 18:43:50 +1000 Subject: [PATCH] Allow filtering for Quake 3 oneflag gametype entities when oneflag CTF is enabled --- qcsrc/server/compat/quake3.qc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qcsrc/server/compat/quake3.qc b/qcsrc/server/compat/quake3.qc index 4d469b455..c405b8a24 100644 --- a/qcsrc/server/compat/quake3.qc +++ b/qcsrc/server/compat/quake3.qc @@ -5,6 +5,7 @@ #include #include #include +#include #include #include #include @@ -294,11 +295,13 @@ bool DoesQ3ARemoveThisEntity(entity this) gametypename = "team"; if(g_ctf) gametypename = "ctf"; + if(g_ctf && ctf_oneflag) + gametypename = "oneflag"; if(g_duel) gametypename = "tournament"; if(maxclients == 1) gametypename = "single"; - // we do not have the other types (oneflag, obelisk, harvester, teamtournament) + // we do not have the other types (obelisk, harvester, teamtournament) if(strstrofs(this.gametype, gametypename, 0) < 0) return true; } -- 2.39.2