From: drjaska Date: Sun, 28 Nov 2021 04:48:26 +0000 (+0200) Subject: fix a switch case from malfunctioning. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1bfbc0a217148f4e5a9a0b45134b53223a0d1fc0;p=xonotic%2Fxonotic-data.pk3dir.git fix a switch case from malfunctioning. --- diff --git a/qcsrc/common/gamemodes/gamemode/mayhem/sv_mayhem.qc b/qcsrc/common/gamemodes/gamemode/mayhem/sv_mayhem.qc index 6d8a06544..4fb6f9ed0 100644 --- a/qcsrc/common/gamemodes/gamemode/mayhem/sv_mayhem.qc +++ b/qcsrc/common/gamemodes/gamemode/mayhem/sv_mayhem.qc @@ -162,6 +162,7 @@ MUTATOR_HOOKFUNCTION(mayhem, PlayerDamage_SplitHealthArmor) frag_deathtype == DEATH_SLIME.m_id || frag_deathtype == DEATH_SWAMP.m_id)) GameRules_scoring_add_team(frag_target, SCORE, (-1 * (start_health + start_armorvalue)) * mayhempointmultiplier * (1/(start_health + start_armorvalue))); + return; } //combined damage and frags @@ -199,6 +200,7 @@ MUTATOR_HOOKFUNCTION(mayhem, PlayerDamage_SplitHealthArmor) frag_deathtype == DEATH_SLIME.m_id || frag_deathtype == DEATH_SWAMP.m_id)) GameRules_scoring_add_team(frag_target, SCORE, (-1 * (frag_damage - excess)) * 0.75 * mayhempointmultiplier * (1/(start_health + start_armorvalue))); + return; } } }