From: bones_was_here Date: Mon, 3 Oct 2022 07:37:04 +0000 (+1000) Subject: Remove unnecessary setorigin() calls in Item_Respawn() and Item_Reset() X-Git-Tag: xonotic-v0.8.6~340^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=263a58abd2aa5db78cf2a02b99f8d357527d3d5c;p=xonotic%2Fxonotic-data.pk3dir.git Remove unnecessary setorigin() calls in Item_Respawn() and Item_Reset() Item_Show() already did it, no need to immediately do it again. --- 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)) {