From f6055aabf1cf36b72605a57c4aa7a2a97c24810c Mon Sep 17 00:00:00 2001 From: bones_was_here Date: Wed, 14 Jun 2023 21:41:02 +1000 Subject: [PATCH] items: remove override of Item_Think() in Item_InitializeLoot() This was preventing any updates being sent to CSQC for items spawned via this code path (except the final deletion when the item expired). --- qcsrc/server/items/spawning.qc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qcsrc/server/items/spawning.qc b/qcsrc/server/items/spawning.qc index 561a5673a..2f0668344 100644 --- a/qcsrc/server/items/spawning.qc +++ b/qcsrc/server/items/spawning.qc @@ -115,7 +115,9 @@ bool Item_InitializeLoot(entity item, string class_name, vector position, } item.gravity = 1; item.velocity = vel; - SUB_SetFade(item, time + time_to_live, 1); + // StartItem sets the default .wait expiry time which is respected by Item_Think() + if (time_to_live) + item.wait = time + time_to_live; return true; } -- 2.39.2