mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- cleaned up some code from my fights with SetTexCoord/nan
This commit is contained in:
@ -811,7 +811,7 @@ function IceHUD:Clamp(value, min, max)
|
||||
value = min
|
||||
elseif value > max then
|
||||
value = max
|
||||
elseif not (value >= min and value <= max) then
|
||||
elseif value ~= value or not (value >= min and value <= max) then -- check for nan...
|
||||
value = min
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user