From 263a58abd2aa5db78cf2a02b99f8d357527d3d5c Mon Sep 17 00:00:00 2001 From: bones_was_here Date: Mon, 3 Oct 2022 17:37:04 +1000 Subject: [PATCH] Remove unnecessary setorigin() calls in Item_Respawn() and Item_Reset() Item_Show() already did it, no need to immediately do it again. --- qcsrc/server/items/items.qc | 2 -- 1 file changed, 2 deletions(-) diff --git a/qcsrc/server/items/items.qc b/qcsrc/server/items/items.qc index cbc4ae440..89532a790 100644 --- a/qcsrc/server/items/items.qc +++ b/qcsrc/server/items/items.qc @@ -199,7 +199,6 @@ void Item_Respawn(entity this) { Item_Show(this, 1); sound(this, CH_TRIGGER, this.itemdef.m_respawnsound, VOL_BASE, ATTEN_NORM); // play respawn sound - setorigin(this, this.origin); if (Item_ItemsTime_Allow(this.itemdef) || (STAT(WEAPONS, this) & WEPSET_SUPERWEAPONS)) { @@ -728,7 +727,6 @@ LABEL(pickup) void Item_Reset(entity this) { Item_Show(this, !this.state); - setorigin(this, this.origin); if (Item_IsLoot(this)) { -- 2.39.2