added add heigth limit for weather visibility

This commit is contained in:
Arturas Norkus 2017-06-24 22:22:59 +03:00
parent e90133b30a
commit da72a58293
4 changed files with 7 additions and 7 deletions

View File

@ -191,7 +191,7 @@ heavy_rain.in_area = function(position)
return false
end
if position.y > -10 then
if position.y > -10 and position.y < 120 then
return true
end
return false

View File

@ -144,7 +144,7 @@ light_rain.in_area = function(position)
return false
end
if position.y > -10 then
if position.y > -10 and position.y < 120 then
return true
end
return false

View File

@ -147,7 +147,7 @@ rain.in_area = function(position)
return false
end
if position.y > -10 then
if position.y > -10 and position.y < 120 then
return true
end
return false

View File

@ -117,9 +117,9 @@ end
local particles_number_per_update = 10
snow.render = function(dtime, player)
for i=particles_number_per_update, 1,-1 do
display_particles(player)
end
for i=particles_number_per_update, 1,-1 do
display_particles(player)
end
end
snow.in_area = function(position)
@ -127,7 +127,7 @@ snow.in_area = function(position)
return false
end
if position.y > -10 then
if position.y > -10 and position.y < 120 then
return true
end
return false