]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix conditionals in FragCenterMessage
authorLegendaryGuard <rootuser999@gmail.com>
Tue, 12 Oct 2021 22:28:34 +0000 (00:28 +0200)
committerLegendaryGuard <rootuser999@gmail.com>
Tue, 12 Oct 2021 22:28:34 +0000 (00:28 +0200)
qcsrc/common/gamemodes/gamemode/mmm/sv_mmm.qc

index ba391d8af8e4efb5d94c4b5d430e90c8cedc6931..5e804c49024d18432c272133eccd0f15eca7cb45 100644 (file)
@@ -426,7 +426,7 @@ MUTATOR_HOOKFUNCTION(mmm, FragCenterMessage)
        // Conditions that count as team kill in MMM
        if((attacker.mmm_status == targ.mmm_status) ||
           (attacker.mmm_status == MMM_STATUS_DETECTIVE && targ.mmm_status == MMM_STATUS_CIVILIAN) ||
-          (attacker.mmm_status == MMM_STATUS_CIVILIAN  && targ.mmm_status == MMM_STATUS_CIVILIAN)
+          (attacker.mmm_status == MMM_STATUS_CIVILIAN  && targ.mmm_status == MMM_STATUS_DETECTIVE)
        )
        {
                Send_Notification(NOTIF_ONE, attacker, MSG_CENTER, CENTER_DEATH_TEAMKILL_FRAG, targ.netname);