]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove unnecessary setorigin() calls in Item_Respawn() and Item_Reset() 1079/head
authorbones_was_here <bones_was_here@xonotic.au>
Mon, 3 Oct 2022 07:37:04 +0000 (17:37 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Mon, 3 Oct 2022 07:37:04 +0000 (17:37 +1000)
Item_Show() already did it, no need to immediately do it again.

qcsrc/server/items/items.qc

index cbc4ae44098d63981c7fd58ed4bcf47ba8e82ad5..89532a790efc8af3e7af5f2b968d8f7fb94d8db0 100644 (file)
@@ -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))
        {