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) function clamp(num)
if num < 0 then if num < 0 then
return 0 return 0
elseif num > 15 then elseif num > res-1 then
return 15 return res-1
else else
return num return num
end end