fix fixed resolution in clamp

master
obneq 2012-08-06 16:46:54 +02:00
parent ec89ba4c94
commit 4247bcb1dd
1 changed files with 2 additions and 2 deletions

View File

@ -373,8 +373,8 @@ end
function clamp(num)
if num < 0 then
return 0
elseif num > 15 then
return 15
elseif num > res-1 then
return res-1
else
return num
end