From c2f796975ec8fa0e67f3c3dd9298a7c4270e6f3e Mon Sep 17 00:00:00 2001 From: Astralcircle <142503363+Astralcircle@users.noreply.github.com> Date: Fri, 24 Jul 2026 07:35:43 +0300 Subject: [PATCH] Fix clamp(vec, vec, vec) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Accidentally renamed the values ​​when moving functions from angle core Thanks to Buildstruct for the report --- lua/entities/gmod_wire_expression2/core/vector.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lua/entities/gmod_wire_expression2/core/vector.lua b/lua/entities/gmod_wire_expression2/core/vector.lua index 07b6a44063..7a3567e9ec 100644 --- a/lua/entities/gmod_wire_expression2/core/vector.lua +++ b/lua/entities/gmod_wire_expression2/core/vector.lua @@ -477,11 +477,11 @@ e2function vector clamp(vector value, vector min, vector max) local rx3, ry3, rz3 = max:Unpack() if rx1 < rx2 then - p = rx2 + x = rx2 elseif rx1 > rx3 then - p = rx3 + x = rx3 else - p = rx1 + x = rx1 end if ry1 < ry2 then @@ -493,11 +493,11 @@ e2function vector clamp(vector value, vector min, vector max) end if rz1 < rz2 then - r = rz2 + z = rz2 elseif rz1 > rz3 then - r = rz3 + z = rz3 else - r = rz1 + z = rz1 end return Vector(x, y, z)