]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Only apply laser damage reduction to players
authorMario <mario.mario@y7mail.com>
Sun, 26 May 2013 12:11:21 +0000 (22:11 +1000)
committerMario <mario.mario@y7mail.com>
Sun, 26 May 2013 12:11:21 +0000 (22:11 +1000)
qcsrc/server/mutators/mutator_riflearena.qc

index b9af805093ed7ff4b00013d391975b1e8d98c795..7ad0ff6cb211292ebfb89c7cf7d77925b1920f9b 100644 (file)
@@ -199,6 +199,7 @@ MUTATOR_HOOKFUNCTION(ra_VehicleEnter)
 MUTATOR_HOOKFUNCTION(ra_PlayerDamage)
 {
        if(IS_PLAYER(frag_attacker))
+       if(IS_PLAYER(frag_target))
        {
                if (DEATH_ISWEAPON(frag_deathtype, WEP_LASER))
                {