From: z411 Date: Thu, 6 Oct 2022 07:57:22 +0000 (+0000) Subject: Use Mario's RemoveItem function to remove powerup when expired X-Git-Tag: xonotic-v0.8.6~335^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=dbdb582f7720c8e6b7be36d73a806282befe0de8;p=xonotic%2Fxonotic-data.pk3dir.git Use Mario's RemoveItem function to remove powerup when expired --- 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; }