- NaN-safe'd IceHUD's Clamp function to finally put the kibosh on any SetTexCoord errors

This commit is contained in:
Parnic
2009-04-19 00:02:52 +00:00
parent 10af4566d6
commit 368579ec04

View File

@ -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