]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/player.qc
Replace cases of !SAME_TEAM with DIFF_TEAM
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / player.qc
index 32515c048ecea7dac6205be6e5aa1b7ad4979201..d8cc0dce04b105ec0b8da5dc7d75e00363aaf157 100644 (file)
@@ -468,7 +468,7 @@ void PlayerDamage(entity this, entity inflictor, entity attacker, float damage,
 
                        if (this != attacker) {
                                float realdmg = damage - excess;
-                               if (IS_PLAYER(attacker) && !SAME_TEAM(attacker, this)) {
+                               if (IS_PLAYER(attacker) && DIFF_TEAM(attacker, this)) {
                                        GameRules_scoring_add(attacker, DMG, realdmg);
                                }
                                if (IS_PLAYER(this)) {