1
0
mirror of https://codeberg.org/tenplus1/ambience.git synced 2024-12-24 01:30:30 +01:00

amend comments

This commit is contained in:
TenPlus1 2018-09-04 10:16:55 +01:00
parent 3657e3a580
commit 1ca4ef974b

View File

@ -138,7 +138,7 @@ local get_ambience = function(player, tod, name)
{x = pos.x - radius, y = pos.y - radius, z = pos.z - radius}, {x = pos.x - radius, y = pos.y - radius, z = pos.z - radius},
{x = pos.x + radius, y = pos.y + radius, z = pos.z + radius}, set_nodes) {x = pos.x + radius, y = pos.y + radius, z = pos.z + radius}, set_nodes)
-- loop through sets in order and play appropriate sound -- loop through sets in order and choose one that meets it's conditions
for n = 1, #sound_set_order do for n = 1, #sound_set_order do
local set = sound_sets[ sound_set_order[n] ] local set = sound_sets[ sound_set_order[n] ]
@ -208,7 +208,7 @@ minetest.register_globalstep(function(dtime)
end end
end end
-- choose random sound from set -- choose random sound from set selected
number = random(1, #sound_sets[set_name].sounds) number = random(1, #sound_sets[set_name].sounds)
ambience = sound_sets[set_name].sounds[number] ambience = sound_sets[set_name].sounds[number]