From: drjaska Date: Sun, 25 Apr 2021 23:52:48 +0000 (+0300) Subject: removed unused check for a damage type in dmg2score X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ecf17361611ca372a01b843ca9e34b8761895ade;p=xonotic%2Fxonotic-data.pk3dir.git removed unused check for a damage type in dmg2score I thought fire damage was from torches on maps which would burn players who stand on them, apparently it's from fireball superweapon and napalm grenades which are used weapons and thus have a registered attacking player so they'd never pass the check for the source not being a player thus being unused --- diff --git a/qcsrc/common/gamemodes/gamemode/mayhem/sv_mayhem.qc b/qcsrc/common/gamemodes/gamemode/mayhem/sv_mayhem.qc index 686348887..07644744f 100644 --- a/qcsrc/common/gamemodes/gamemode/mayhem/sv_mayhem.qc +++ b/qcsrc/common/gamemodes/gamemode/mayhem/sv_mayhem.qc @@ -100,7 +100,6 @@ MUTATOR_HOOKFUNCTION(mayhem, PlayerDamage_SplitHealthArmor) if (!IS_PLAYER(frag_attacker) && ( frag_deathtype == DEATH_DROWN.m_id || frag_deathtype == DEATH_HURTTRIGGER.m_id || - frag_deathtype == DEATH_FIRE.m_id || frag_deathtype == DEATH_CAMP.m_id || frag_deathtype == DEATH_LAVA.m_id || frag_deathtype == DEATH_SLIME.m_id)) diff --git a/qcsrc/common/gamemodes/gamemode/tmayhem/sv_tmayhem.qc b/qcsrc/common/gamemodes/gamemode/tmayhem/sv_tmayhem.qc index 36a4f2170..ec4cf81ac 100644 --- a/qcsrc/common/gamemodes/gamemode/tmayhem/sv_tmayhem.qc +++ b/qcsrc/common/gamemodes/gamemode/tmayhem/sv_tmayhem.qc @@ -158,7 +158,6 @@ MUTATOR_HOOKFUNCTION(tmayhem, PlayerDamage_SplitHealthArmor) if (!IS_PLAYER(frag_attacker) && ( frag_deathtype == DEATH_DROWN.m_id || frag_deathtype == DEATH_HURTTRIGGER.m_id || - frag_deathtype == DEATH_FIRE.m_id || frag_deathtype == DEATH_CAMP.m_id || frag_deathtype == DEATH_LAVA.m_id || frag_deathtype == DEATH_SLIME.m_id))