From dbdb582f7720c8e6b7be36d73a806282befe0de8 Mon Sep 17 00:00:00 2001 From: z411 Date: Thu, 6 Oct 2022 07:57:22 +0000 Subject: [PATCH] Use Mario's RemoveItem function to remove powerup when expired --- qcsrc/common/mutators/mutator/powerups/sv_powerups.qc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qcsrc/common/mutators/mutator/powerups/sv_powerups.qc b/qcsrc/common/mutators/mutator/powerups/sv_powerups.qc index ef9aa3acb..33a3d1683 100644 --- a/qcsrc/common/mutators/mutator/powerups/sv_powerups.qc +++ b/qcsrc/common/mutators/mutator/powerups/sv_powerups.qc @@ -82,8 +82,7 @@ void powerups_DropItem_Think(entity this) TakeResource(this, RES_HEALTH, 1); if(GetResource(this, RES_HEALTH) < 1) { - WaypointSprite_Kill(this.waypointsprite_attached); - delete(this); + RemoveItem(this); return; } -- 2.39.2