diff options
author | narbatucker <kai@zittrig.eu> | 2019-10-06 13:50:00 +0100 |
---|---|---|
committer | narbatucker <kai@zittrig.eu> | 2019-10-06 13:50:00 +0100 |
commit | e8b2a3d5f75379a22cddb6bb6f52349227533fd5 (patch) | |
tree | 5cf592eb6ea61d8d7633156c0f7e94934fcb1a18 /src | |
parent | 19d2fb012968269684633603da1a635bb9528d80 (diff) |
use an or statement insteadstaging
Diffstat (limited to 'src')
-rw-r--r-- | src/game/g_admin.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c index 37df6fe..7635b86 100644 --- a/src/game/g_admin.c +++ b/src/game/g_admin.c @@ -5747,11 +5747,8 @@ 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 ) ) - { - Q_strncpyz( muted, "V", sizeof( muted ) ); - } - if( G_admin_permission( &g_entities[ i ], ADMF_FAKE_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 ) ); } |