]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Survival: don't show personal colors of players joining mid-round in the scoreboard
authorterencehill <piuntn@gmail.com>
Thu, 8 Jun 2023 15:36:19 +0000 (17:36 +0200)
committerterencehill <piuntn@gmail.com>
Thu, 8 Jun 2023 16:02:51 +0000 (18:02 +0200)
qcsrc/common/gamemodes/gamemode/survival/sv_survival.qc

index 94748007ec3d6ee346751ef7bd3731693bf90d6a..223aa0787f0e362d16dfc537072a003aef293156 100644 (file)
@@ -211,7 +211,7 @@ MUTATOR_HOOKFUNCTION(surv, PlayerPreThink)
 {
        entity player = M_ARGV(0, entity);
 
-       if(IS_PLAYER(player) || INGAME_JOINED(player))
+       if(IS_PLAYER(player) || INGAME(player))
        {
                // update the scoreboard colour display to out the real killer at the end of the round
                // running this every frame to avoid cheats