From: Freddy Date: Sun, 26 Jun 2016 10:49:24 +0000 (+0200) Subject: Clan Arena: Fix spectators being shown as part of a team X-Git-Tag: xonotic-v0.8.2~700^2~103^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d7130529917aaf12a7e736cb1c9cc4b79679ef9d;p=xonotic%2Fxonotic-data.pk3dir.git Clan Arena: Fix spectators being shown as part of a team --- diff --git a/qcsrc/server/mutators/mutator/gamemode_ca.qc b/qcsrc/server/mutators/mutator/gamemode_ca.qc index 2a8da29c2..3ee1f515b 100644 --- a/qcsrc/server/mutators/mutator/gamemode_ca.qc +++ b/qcsrc/server/mutators/mutator/gamemode_ca.qc @@ -307,7 +307,7 @@ void ca_LastPlayerForTeam_Notify(entity this) MUTATOR_HOOKFUNCTION(ca, PlayerDies) { entity frag_target = M_ARGV(2, entity); - + ca_LastPlayerForTeam_Notify(frag_target); if (!allowed_to_spawn) frag_target.respawn_flags = RESPAWN_SILENT; @@ -340,6 +340,8 @@ MUTATOR_HOOKFUNCTION(ca, MakePlayerObserver) player.caplayer = 0; if (player.caplayer) player.frags = FRAGS_LMS_LOSER; + else + player.frags = FRAGS_SPECTATOR; if (!warmup_stage) eliminatedPlayers.SendFlags |= 1; return true; // prevent team reset