From: bones_was_here Date: Sat, 15 Jul 2023 11:29:40 +0000 (+1000) Subject: items: remove blind nudging of items during spawn X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cc83c39c27ea0757cf169562428e443c5ab60fdc;p=xonotic%2Fxonotic-data.pk3dir.git items: remove blind nudging of items during spawn In some cases this isn't enough to fix a bad placement, in rare cases it can cause a bad placement because it doesn't consider the brushwork near the item. It's replaced by smart nudging (DP_QC_NUDGEOUTOFSOLID). --- diff --git a/qcsrc/server/items/items.qc b/qcsrc/server/items/items.qc index fe83afbda..f4853c5c7 100644 --- a/qcsrc/server/items/items.qc +++ b/qcsrc/server/items/items.qc @@ -1110,8 +1110,6 @@ void StartItem(entity this, entity def) // do item filtering according to game mode and other things if (this.noalign <= 0) { - // first nudge it off the floor a little bit to avoid math errors - setorigin(this, this.origin + '0 0 1'); // note droptofloor returns false if stuck/or would fall too far if (!this.noalign) droptofloor(this);