]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 9783ff1257415d2e3e4cd1467fbee2cad9800909..8b707f7bfb6c0bd3e1b54cddf1cb1e24d6b2fc61 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