mirror of
https://github.com/cave-story-randomizer/cave-story-randomizer
synced 2024-12-25 22:47:14 +00:00
changes random library from math.random to love.math.random
This commit is contained in:
parent
05ceaeb338
commit
11139054d7
|
@ -12,7 +12,7 @@ local next, type, select, pcall = next, type, select, pcall
|
|||
local setmetatable, getmetatable = setmetatable, getmetatable
|
||||
local t_insert, t_sort = table.insert, table.sort
|
||||
local t_remove,t_concat = table.remove, table.concat
|
||||
local randomseed, random, huge = math.randomseed, math.random, math.huge
|
||||
local randomseed, random, huge = love.math.setRandomSeed, love.math.random, math.huge
|
||||
local floor, max, min = math.floor, math.max, math.min
|
||||
local rawget = rawget
|
||||
local unpack = table.unpack or unpack
|
||||
|
|
|
@ -77,7 +77,7 @@ end
|
|||
|
||||
function C:_seedRngesus()
|
||||
local seed = tostring(os.time())
|
||||
math.randomseed(seed)
|
||||
love.math.setRandomSeed(seed)
|
||||
logNotice(('Offering seed "%s" to RNGesus'):format(seed))
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue