From a65e47aec60ff88e2f575e88dd6516cf4648eb08 Mon Sep 17 00:00:00 2001 From: bones_was_here Date: Fri, 16 Jun 2023 22:38:50 +1000 Subject: [PATCH] Fix resetmatch not deleting loot items Accidentally changed the .reset function for loot in !1202 --- qcsrc/server/items/items.qc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/qcsrc/server/items/items.qc b/qcsrc/server/items/items.qc index 46587b9c1..d0353866f 100644 --- a/qcsrc/server/items/items.qc +++ b/qcsrc/server/items/items.qc @@ -1046,6 +1046,8 @@ void _StartItem(entity this, entity def, float defaultrespawntime, float default } else { + this.reset = Item_Reset; + // must be done after def.m_iteminit() as that may set ITEM_FLAG_MUTATORBLOCKED if(!have_pickup_item(this)) { @@ -1174,10 +1176,7 @@ void _StartItem(entity this, entity def, float defaultrespawntime, float default this.reset = Item_FindTeam; } else - { - this.reset = Item_Reset; Item_Reset(this); - } Net_LinkEntity(this, !(def.instanceOfPowerup || def.instanceOfHealth || def.instanceOfArmor), 0, ItemSend); -- 2.39.2