From dd81c8bb2daece51f243121c0b9ff82ee7eff98b Mon Sep 17 00:00:00 2001 From: IronClawTrem Date: Fri, 1 Nov 2019 22:18:20 +0000 Subject: add .FAKENOVOTE flag --- src/game/g_admin.c | 2 +- src/game/g_admin.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src/game') diff --git a/src/game/g_admin.c b/src/game/g_admin.c index a4006ea..c38f6de 100644 --- a/src/game/g_admin.c +++ b/src/game/g_admin.c @@ -4679,7 +4679,7 @@ qboolean G_admin_listplayers( gentity_t *ent, int skiparg ) Q_strncpyz( guidless, "G", sizeof( guidless ) ); } muted[ 0 ] = '\0'; - if( G_admin_permission( &g_entities[ i ], ADMF_NO_VOTE ) ) + if( G_admin_permission( &g_entities[ i ], ADMF_NO_VOTE ) || G_admin_permission( &g_entities[ i ], ADMF_FAKE_NO_VOTE ) ) { Q_strncpyz( muted, "V", sizeof( muted ) ); } diff --git a/src/game/g_admin.h b/src/game/g_admin.h index 177d7e3..3b94644 100644 --- a/src/game/g_admin.h +++ b/src/game/g_admin.h @@ -104,6 +104,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #define ADMF_NO_BUILD ".NOBUILD" #define ADMF_NO_CHAT ".NOCHAT" #define ADMF_NO_VOTE ".NOVOTE" +#define ADMF_FAKE_NO_VOTE ".FAKENOVOTE" #define MAX_ADMIN_LISTITEMS 20 #define MAX_ADMIN_SHOWBANS 10 -- cgit