Don't autowin level in editor

master
Wuzzy 2022-02-10 18:31:08 +01:00
parent 2731284ebe
commit 5128203dcc
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ function lzr_levels.build_level(level)
-- Propagate lasers and check for insta-win
lzr_laser.full_laser_update(lzr_globals.PLAYFIELD_START, lzr_globals.PLAYFIELD_END)
local done = lzr_laser.check_level_won()
if done then
if done and lzr_gamestate.get_state() ~= lzr_gamestate.EDITOR then
lzr_levels.level_complete()
end
else