Skip to content

Commit

Permalink
Remove useless nan check
Browse files Browse the repository at this point in the history
  • Loading branch information
Astralcircle authored Dec 15, 2024
1 parent b3bdd27 commit b39afa6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lua/wire/wireshared.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1013,9 +1013,9 @@ function WireLib.clampForce( v )
local x, y, z = v:Unpack()

return Vector(
x == x and clamp( x, min_force, max_force ) or 0,
y == y and clamp( y, min_force, max_force ) or 0,
z == z and clamp( z, min_force, max_force ) or 0
clamp( x, min_force, max_force ) or 0,
clamp( y, min_force, max_force ) or 0,
clamp( z, min_force, max_force ) or 0
)
end

Expand Down Expand Up @@ -1328,4 +1328,4 @@ local typeIDToStringTable = {
-- Silly function to make printouts more userfriendly.
function WireLib.typeIDToString(typeID)
return typeIDToStringTable[typeID] or "unregistered type"
end
end

0 comments on commit b39afa6

Please sign in to comment.