Seed love.math.random when the math module is loaded, instead of in love.run.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2017-07-23 19:45:49 -03:00
parent d1d6fb6f68
commit ef5897b22c
3 changed files with 7 additions and 9 deletions
-5
View File
@@ -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.