From ecf17361611ca372a01b843ca9e34b8761895ade Mon Sep 17 00:00:00 2001 From: drjaska Date: Mon, 26 Apr 2021 02:52:48 +0300 Subject: [PATCH] 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 --- qcsrc/common/gamemodes/gamemode/mayhem/sv_mayhem.qc | 1 - qcsrc/common/gamemodes/gamemode/tmayhem/sv_tmayhem.qc | 1 - 2 files changed, 2 deletions(-) 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)) -- 2.39.5