Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions lua/entities/gmod_wire_expression2/core/vector.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down
Loading