Replace love.math functions with standard lib functions because it errors otherwise
This commit is contained in:
parent
21eb93fe4c
commit
f364f7082b
|
@ -75,15 +75,15 @@ return function(parent)
|
|||
pi=math.pi,
|
||||
pow=math.pow,
|
||||
rad=math.rad,
|
||||
random=love.math.random, --Replaced with love.math versions
|
||||
randomseed=function(s) if s then love.math.setRandomSeed(s) else return love.math.getRandomSeed() end end,
|
||||
random=math.random,
|
||||
randomseed=math.randomseed,
|
||||
sin=math.sin,
|
||||
sinh=math.sinh,
|
||||
sqrt=math.sqrt,
|
||||
tan=math.tan,
|
||||
tanh=math.tanh,
|
||||
noise = love.math.noise, --LOVE releated apis
|
||||
b64enc = function(rawstr) return love.data.encode("string","base64",rawstr) end, --Will be replaced by love.math ones in love 0.11
|
||||
noise = math.noise,
|
||||
b64enc = function(rawstr) return love.data.encode("string","base64",rawstr) end,
|
||||
b64dec = function(rawstr) return love.data.decode("string","base64",rawstr) end,
|
||||
hexenc = function(rawstr) return love.data.encode("string","hex",rawstr) end,
|
||||
hexdec = function(rawstr) return love.data.decode("string","hex",rawstr) end,
|
||||
|
@ -94,9 +94,9 @@ return function(parent)
|
|||
if ok then return err
|
||||
else return error(err) end
|
||||
end,
|
||||
isConvex = love.math.isConvex,
|
||||
triangulate = love.math.triangulate,
|
||||
randomNormal = love.math.randomNormal
|
||||
isConvex = math.isConvex,
|
||||
triangulate = math.triangulate,
|
||||
randomNormal = math.randomNormal
|
||||
},
|
||||
coroutine={
|
||||
create = coroutine.create,
|
||||
|
|
Loading…
Reference in New Issue