mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40: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
|
||||
elseif value > max then
|
||||
value = max
|
||||
elseif not (value >= min and value <= max) then
|
||||
value = min
|
||||
end
|
||||
|
||||
return value
|
||||
|
Reference in New Issue
Block a user