]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't drop powerfup if something has dropped before
authorz411 <z411@omaera.org>
Tue, 4 Oct 2022 05:23:42 +0000 (02:23 -0300)
committerz411 <z411@omaera.org>
Tue, 4 Oct 2022 05:23:42 +0000 (02:23 -0300)
qcsrc/common/mutators/mutator/powerups/sv_powerups.qc

index 14ad5f1216e5560b26395f278096660f222df27b..ef9aa3acb8c3f22d7fbc5f6138e2de698f4e7c2c 100644 (file)
@@ -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);