Commit 88ba7c5a authored by Simpy's avatar Simpy 🐹
Browse files

dont bother trying to scale zero

parent b7309893
......@@ -87,7 +87,7 @@ end
local trunc = function(s) return s >= 0 and s-s%01 or s-s%-1 end
local round = function(s) return s >= 0 and s-s%-1 or s-s%01 end
function E:Scale(num)
if E.mult == 1 then
if E.mult == 1 or num == 0 then
return num
elseif E.mult < 1 then
return trunc(num/E.mult) * E.mult
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment