From: terencehill Date: Sun, 27 Mar 2016 09:11:09 +0000 (+0200) Subject: CA: fix "You are now alone!" message displayed twice X-Git-Tag: xonotic-v0.8.2~994^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=refs%2Fmerge-requests%2F300%2Fhead;p=xonotic%2Fxonotic-data.pk3dir.git CA: fix "You are now alone!" message displayed twice --- diff --git a/qcsrc/server/mutators/mutator/gamemode_ca.qc b/qcsrc/server/mutators/mutator/gamemode_ca.qc index 7f0eafe86..9a9d22880 100644 --- a/qcsrc/server/mutators/mutator/gamemode_ca.qc +++ b/qcsrc/server/mutators/mutator/gamemode_ca.qc @@ -331,7 +331,7 @@ MUTATOR_HOOKFUNCTION(ca, ForbidPlayerScore_Clear) MUTATOR_HOOKFUNCTION(ca, MakePlayerObserver) { SELFPARAM(); - if (this.caplayer == 1) + if (!IS_DEAD(this)) ca_LastPlayerForTeam_Notify(); if (this.killindicator_teamchange == -2) this.caplayer = 0;