From cc83c39c27ea0757cf169562428e443c5ab60fdc Mon Sep 17 00:00:00 2001 From: bones_was_here Date: Sat, 15 Jul 2023 21:29:40 +1000 Subject: [PATCH] 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). --- 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 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); -- 2.39.2