mirror of
https://github.com/TangentFoxy/lume.git
synced 2025-07-28 02:52:21 +00:00
lume uses love.math.random if available
This commit is contained in:
2
lume.lua
2
lume.lua
@@ -32,7 +32,7 @@ local math_ceil = math.ceil
|
|||||||
local math_atan2 = math.atan2 or math.atan
|
local math_atan2 = math.atan2 or math.atan
|
||||||
local math_sqrt = math.sqrt
|
local math_sqrt = math.sqrt
|
||||||
local math_abs = math.abs
|
local math_abs = math.abs
|
||||||
local math_random = math.random
|
local math_random = love and love.math or math.random
|
||||||
|
|
||||||
local noop = function()
|
local noop = function()
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user