Skip to content
Snippets Groups Projects
Commit f49aaf19 authored by DarkGod's avatar DarkGod
Browse files

fix a rather strange bug

parent e5335985
No related branches found
No related tags found
No related merge requests found
......@@ -425,7 +425,7 @@ function _M:waitEvent(name, cb, wait_max)
local tries = 0
while not stop do
if not first then
if not self.waiting_event_no_redraw then core.display.forceRedraw() end
if not self.waiting_event_no_redraw then pcall(core.display.forceRedraw) end
core.game.sleep(50)
end
local evt = self:popEvent(name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment