]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix players not taking damage from anything
authorMario <mario.mario@y7mail.com>
Tue, 28 May 2013 13:51:19 +0000 (23:51 +1000)
committerMario <mario.mario@y7mail.com>
Tue, 28 May 2013 13:51:19 +0000 (23:51 +1000)
qcsrc/server/mutators/gamemode_towerdefense.qc

index bdd3143b90ca82ad9af1f0ff4e1a6c6ce3163269..9a588bfd2a3262c9b193f9572220c4e774c682ad 100644 (file)
@@ -754,6 +754,7 @@ MUTATOR_HOOKFUNCTION(td_Damage)
        if(frag_target.flags & FL_MONSTER)
                frag_damage = 0;
                
+       if(IS_PLAYER(frag_attacker) || frag_attacker.turrcaps_flags & TFL_TURRCAPS_ISTURRET)
        if(IS_PLAYER(frag_target))
        {
                frag_damage = 0;