From: terencehill Date: Tue, 13 Aug 2019 11:19:29 +0000 (+0200) Subject: Optimize WarpZoneLib_MoveOutOfSolid_Expand (constant folding) X-Git-Tag: xonotic-v0.8.5~1396 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7b991dff59415c782657f783b21361b1eb1f9cd4;p=xonotic%2Fxonotic-data.pk3dir.git Optimize WarpZoneLib_MoveOutOfSolid_Expand (constant folding) --- diff --git a/qcsrc/lib/warpzone/common.qc b/qcsrc/lib/warpzone/common.qc index 82d3a5071..b70e938fe 100644 --- a/qcsrc/lib/warpzone/common.qc +++ b/qcsrc/lib/warpzone/common.qc @@ -792,7 +792,7 @@ bool WarpZoneLib_ExactTrigger_Touch(entity this, entity toucher) void WarpZoneLib_MoveOutOfSolid_Expand(entity e, vector by) { - float eps = 0.0625; + const float eps = 0.0625; tracebox(e.origin, e.mins - '1 1 1' * eps, e.maxs + '1 1 1' * eps, e.origin + by, MOVE_WORLDONLY, e); if (trace_startsolid) return;