rename teamplay_default to teamplay_mode, stop using the "teamplay" cvar (more cleanu...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / w_minelayer.qc
index 8e0548ecf9029d842fd5582701de271e238c02ed..225fa5ebab22df27b768b26a0feacfb01ba25bfd 100644 (file)
@@ -314,9 +314,9 @@ float w_minelayer(float req)
                        }
                        float desirabledamage;
                        desirabledamage = enemydamage;
-                       if (autocvar_teamplay != 1 && time > self.invincible_finished && time > self.spawnshieldtime)
+                       if (time > self.invincible_finished && time > self.spawnshieldtime)
                                desirabledamage = desirabledamage - selfdamage * cvar("g_balance_selfdamagepercent");
-                       if (self.team && autocvar_teamplay != 1)
+                       if (teams_matter && self.team)
                                desirabledamage = desirabledamage - teamdamage;
 
                        mine = find(world, classname, "mine");