diff options
author | MaeJong <mewiceclair@gmail.com> | 2017-05-20 13:51:33 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-05-22 15:26:33 +0200 |
commit | 96191eb5f1a02492fab7d02b14e4e8b75b64bc40 (patch) | |
tree | 83bc621f365c1e696f85c08b53087b74121c0221 /src | |
parent | fb80ecb2433424313064c13a8896ff1fbf361ceb (diff) |
Display 0 as Schachtmeister judgement instead of N/A if admin has flag INCOGNITO
Diffstat (limited to 'src')
-rw-r--r-- | src/game/g_admin.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 "); |