Show the uid2name dialogue in CTF if rankings are enabled and the player hasn't decid...
authorMario <mario.mario@y7mail.com>
Mon, 13 Jul 2020 09:36:51 +0000 (19:36 +1000)
committerMario <mario.mario@y7mail.com>
Mon, 13 Jul 2020 09:36:51 +0000 (19:36 +1000)
qcsrc/client/hud/panel/vote.qc

index 9783ff1..8b707f7 100644 (file)
@@ -16,7 +16,7 @@ void HUD_Vote_Export(int fh)
 
 void HUD_Vote()
 {
-       if(autocvar_cl_allow_uid2name == -1 && (ISGAMETYPE(CTS) || ISGAMETYPE(RACE) || (serverflags & SERVERFLAG_PLAYERSTATS)))
+       if(autocvar_cl_allow_uid2name == -1 && (MUTATOR_CALLHOOK(ShowRankings) || (serverflags & SERVERFLAG_PLAYERSTATS)))
        {
                // this dialog gets overriden by the uid2name menu dialog, if it exists
                // TODO remove this client side uid2name dialog in the next release