]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Keep the colour of eliminated players up to date too, fixes hunters not being shown...
authorMario <mario.mario@y7mail.com>
Mon, 13 Jul 2020 19:43:36 +0000 (05:43 +1000)
committerMario <mario.mario@y7mail.com>
Mon, 13 Jul 2020 19:43:36 +0000 (05:43 +1000)
qcsrc/common/gamemodes/gamemode/survival/sv_survival.qc

index 47fcca7a17506b4f6a6d2c041ef17e031d148174..aa01fa2b602156a10bca01aa1b80afe794b46fcb 100644 (file)
@@ -227,7 +227,7 @@ MUTATOR_HOOKFUNCTION(surv, PlayerPreThink)
 {
        entity player = M_ARGV(0, entity);
 
-       if(IS_PLAYER(player))
+       if(IS_PLAYER(player) || player.caplayer)
        {
                // update the scoreboard colour display to out the real killer at the end of the round
                // running this every frame to avoid cheats