mirror of
https://codeberg.org/tenplus1/ambience.git
synced 2024-11-12 21:40:26 +01:00
amend comments
This commit is contained in:
parent
3657e3a580
commit
1ca4ef974b
4
init.lua
4
init.lua
|
@ -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}, 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
|
||||
|
||||
local set = sound_sets[ sound_set_order[n] ]
|
||||
|
@ -208,7 +208,7 @@ minetest.register_globalstep(function(dtime)
|
|||
end
|
||||
end
|
||||
|
||||
-- choose random sound from set
|
||||
-- choose random sound from set selected
|
||||
number = random(1, #sound_sets[set_name].sounds)
|
||||
ambience = sound_sets[set_name].sounds[number]
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user