Fix level clearer not setting water above room

master
Wuzzy 2022-02-11 13:01:11 +01:00
parent 017bd4d8a6
commit 1e1e634610
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ function lzr_levels.clear_playfield(room_size)
for x=0, size.x do
local pos = vector.new(x,y,z)
pos = vector.add(pos, lzr_globals.PLAYFIELD_START)
if pos.y <= lzr_globals.WATER_LEVEL and (x > room_size.x or z > room_size.z) then
if pos.y <= lzr_globals.WATER_LEVEL and (x > room_size.x or y > room_size.y or z > room_size.z) then
table.insert(posses_water, pos)
else
table.insert(posses_air, pos)