mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- NaN-safe'd IceHUD's Clamp function to finally put the kibosh on any SetTexCoord errors
This commit is contained in:
@ -811,6 +811,8 @@ function IceHUD:Clamp(value, min, max)
|
|||||||
value = min
|
value = min
|
||||||
elseif value > max then
|
elseif value > max then
|
||||||
value = max
|
value = max
|
||||||
|
elseif not (value >= min and value <= max) then
|
||||||
|
value = min
|
||||||
end
|
end
|
||||||
|
|
||||||
return value
|
return value
|
||||||
|
Reference in New Issue
Block a user