]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fixed weapon pickup.
authorLyberta <lyberta@lyberta.net>
Sat, 18 Mar 2017 23:43:09 +0000 (02:43 +0300)
committerLyberta <lyberta@lyberta.net>
Sat, 18 Mar 2017 23:43:09 +0000 (02:43 +0300)
qcsrc/server/mutators/mutator/gamemode_survival.qc

index 3013290591974138f32b7621259bb4efb412690d..c6986197d87fa0304dd6fc4719827e437d4711b1 100644 (file)
@@ -1497,10 +1497,7 @@ MUTATOR_HOOKFUNCTION(surv, ItemTouch)
                                        // FIXME: proper health pickup function.
                                        player.health += g_pickup_healthmedium;
                                        player.armorvalue += g_pickup_armormedium;
-                                       Item_ScheduleRespawn(item);
-                                       sound(player, CH_TRIGGER, SND_ITEMPICKUP, VOL_BASE,
-                                               ATTEN_NORM);
-                                       return MUT_ITEMTOUCH_RETURN;
+                                       return MUT_ITEMTOUCH_CONTINUE;
                                }
                        }
                        return MUT_ITEMTOUCH_CONTINUE;