Commit f176c98aea461f4674c1ceaef6b602d5939b4a3f

Authored by DarkGod
1 parent 359431d2

In developer mode an error popup forces all other dialogs to disappear; making s…

…ure even level generation errors do popup correctly
@@ -250,6 +250,7 @@ function _M:tick() @@ -250,6 +250,7 @@ function _M:tick()
250 -- Check out any possible errors 250 -- Check out any possible errors
251 local errs = core.game.checkError() 251 local errs = core.game.checkError()
252 if errs then 252 if errs then
  253 + if config.settings.cheat then for id = #self.dialogs, 1, -1 do self:unregisterDialog(self.dialogs[id]) end end
253 self:registerDialog(require("engine.dialogs.ShowErrorStack").new(errs)) 254 self:registerDialog(require("engine.dialogs.ShowErrorStack").new(errs))
254 end 255 end
255 256