From: z411 Date: Tue, 4 Oct 2022 05:23:42 +0000 (-0300) Subject: Don't drop powerfup if something has dropped before X-Git-Tag: xonotic-v0.8.6~338^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e230cfed050eaf45b9141affaf361675489c5453;p=xonotic%2Fxonotic-data.pk3dir.git Don't drop powerfup if something has dropped before --- diff --git a/qcsrc/common/mutators/mutator/powerups/sv_powerups.qc b/qcsrc/common/mutators/mutator/powerups/sv_powerups.qc index 14ad5f121..ef9aa3acb 100644 --- a/qcsrc/common/mutators/mutator/powerups/sv_powerups.qc +++ b/qcsrc/common/mutators/mutator/powerups/sv_powerups.qc @@ -169,8 +169,7 @@ MUTATOR_HOOKFUNCTION(powerups, PlayerDies) MUTATOR_HOOKFUNCTION(powerups, PlayerUseKey) { - if(!autocvar_g_powerups_drop) - return; + if(MUTATOR_RETURNVALUE || game_stopped || !autocvar_g_powerups_drop) return; entity player = M_ARGV(0, entity);