From 5b88ffcc7ebe03ef7da373dade2b30f64c885ad7 Mon Sep 17 00:00:00 2001 From: Brett O'Donnell Date: Thu, 27 Sep 2012 12:59:05 +0930 Subject: [PATCH] remove randomseed --- particles/init.lua | 4 ---- 1 file changed, 4 deletions(-) diff --git a/particles/init.lua b/particles/init.lua index 7b4d4de..5e9bba9 100644 --- a/particles/init.lua +++ b/particles/init.lua @@ -19,7 +19,6 @@ minetest.register_entity("particles:particle", { timer2 = 0, on_activate = function(self, staticdata) -- Let the entity move random-ish arround - math.randomseed(os.time()) local obj = self.object obj:setacceleration({x=0, y=-5, z=0}) obj:setvelocity({x=(math.random(0,60)-30)/30, y=(math.random(0,60))/30, z=(math.random(0,60)-30)/30}) @@ -66,7 +65,6 @@ minetest.register_on_dignode(function(pos, oldnode, digger) end end -- create this many particles - math.randomseed(os.time()) for i=1,32 do local dx = (math.random(0,10)-5)/10 local dy = (math.random(0,10)-5)/10 @@ -125,7 +123,6 @@ minetest.register_entity("particles:smoke", { -- register smoke abm minetest.register_abm({ - math.randomseed(os.time()) nodenames = {"group:smokes","default:torch"}, interval = 5, chance = 5, @@ -156,7 +153,6 @@ minetest.register_entity("particles:signalbubble", { -- register signalbubble abm minetest.register_abm({ - math.randomseed(os.time()) nodenames = {"group:signalbubbles","mesecons:mesecon_on","mesecons:wall_lever_on","mesecons:mesecon_torch_on"}, interval = 1, chance = 5,