1
0
ミラー元 https://gitlab.com/rautars/weather_pack.git 前回の同期 2025-11-13 14:25:30 +01:00

minor code cleanup

このコミットが含まれているのは:
Arturas Norkus
2016-06-05 22:24:54 +03:00
コミット 257504bbde
3個のファイルの変更8行の追加16行の削除

ファイルの表示

@@ -6,8 +6,8 @@ snow.particles_count = 25
snow.add_rain_particles = function(player, dtime)
rain.last_rp_count = 0
for i=snow.particles_count, 1,-1 do
local random_pos_x, random_pos_y, random_pos_z = get_random_pos_by_player_look_dir(player)
random_pos_y = math.random() + random_pos(player:getpos().y - 1, player:getpos().y + 7)
local random_pos_x, random_pos_y, random_pos_z = weather.get_random_pos_by_player_look_dir(player)
random_pos_y = math.random() + math.random(player:getpos().y - 1, player:getpos().y + 7)
if minetest.get_node_light({x=random_pos_x, y=random_pos_y, z=random_pos_z}, 0.5) == 15 then
rain.last_rp_count = rain.last_rp_count + 1
minetest.add_particle({
@@ -43,7 +43,7 @@ minetest.register_globalstep(function(dtime)
end
for _, player in ipairs(minetest.get_connected_players()) do
if (is_underwater(player)) then
if (weather.is_underwater(player)) then
return false
end
snow.add_rain_particles(player, dtime)