removed stuff added in last commit(too many problems)

This commit is contained in:
kaadmy 2015-12-17 14:44:46 -08:00
parent 9c98105f13
commit b7d8b4d3b0

View File

@ -54,8 +54,6 @@ local ambiance_volume = tonumber(minetest.setting_get("ambiance_volume")) or 1.0
local soundspec = {} local soundspec = {}
local lastsound = {} local lastsound = {}
local timer = 0
local function ambient_node_near(sound, pos) local nodepos = minetest.find_node_near(pos, sound.dist, sound.nodename) local function ambient_node_near(sound, pos) local nodepos = minetest.find_node_near(pos, sound.dist, sound.nodename)
if nodepos ~= nil and math.random(1, sound.chance) == 1 then if nodepos ~= nil and math.random(1, sound.chance) == 1 then
@ -66,12 +64,6 @@ local function ambient_node_near(sound, pos) local nodepos = minetest.find_nod
end end
local function step(dtime) local function step(dtime)
timer = timer + dtime
if timer < 1 then return end
timer = 0
local player_positions = {} local player_positions = {}
for _, player in ipairs(minetest.get_connected_players()) do for _, player in ipairs(minetest.get_connected_players()) do