mirror of
https://github.com/love2d/love.git
synced 2026-08-14 01:20:56 +02:00
Seed love.math.random when the math module is loaded, instead of in love.run.
--HG-- branch : minor
This commit is contained in:
@@ -511,11 +511,6 @@ function love.init()
|
||||
end
|
||||
|
||||
function love.run()
|
||||
|
||||
if love.math then
|
||||
love.math.setRandomSeed(os.time())
|
||||
end
|
||||
|
||||
if love.load then love.load(arg) end
|
||||
|
||||
-- We don't want the first frame's dt to include time taken by love.load.
|
||||
|
||||
Reference in New Issue
Block a user