]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
CA: fix "You are now alone!" message displayed twice 300/head
authorterencehill <piuntn@gmail.com>
Sun, 27 Mar 2016 09:11:09 +0000 (11:11 +0200)
committerterencehill <piuntn@gmail.com>
Sun, 27 Mar 2016 09:11:09 +0000 (11:11 +0200)
qcsrc/server/mutators/mutator/gamemode_ca.qc

index 7f0eafe868d3a7d517a67966bd0c4d52ccdff2ca..9a9d228809552eb2c79c131577b6aa87b3fef455 100644 (file)
@@ -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;