From 96191eb5f1a02492fab7d02b14e4e8b75b64bc40 Mon Sep 17 00:00:00 2001 From: MaeJong Date: Sat, 20 May 2017 13:51:33 +0200 Subject: Display 0 as Schachtmeister judgement instead of N/A if admin has flag INCOGNITO --- src/game/g_admin.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/game') diff --git a/src/game/g_admin.c b/src/game/g_admin.c index fe0885f..44b6f07 100644 --- a/src/game/g_admin.c +++ b/src/game/g_admin.c @@ -6964,7 +6964,9 @@ static const char *displaySchachtmeisterJudgement(const schachtmeisterJudgement_ { static char buffer[20]; - if (strcmp(namelog->guid, "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") && + if (G_admin_permission_guid(namelog->guid, ADMF_INCOGNITO)) { + Com_sprintf(buffer, sizeof(buffer), "^2 +0"); + } else if (strcmp(namelog->guid, "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") && (G_admin_permission_guid(namelog->guid, ADMF_NOAUTOBAHN) || G_admin_permission_guid(namelog->guid, ADMF_IMMUNITY))) { Com_sprintf(buffer, sizeof(buffer), "^7 N/A "); -- cgit