diff --git a/game/engines/default/engine/Module.lua b/game/engines/default/engine/Module.lua index dc8293fd9e1dc0b31c1c62d32e4f52d2b571b681..7e1fd0eb9a1b5c61da0d67fa299b63724ede3d96 100644 --- a/game/engines/default/engine/Module.lua +++ b/game/engines/default/engine/Module.lua @@ -554,6 +554,7 @@ function _M:instanciate(mod, name, new_game, no_reboot) save:close() -- Display the loading bar + profile.waiting_auth_no_redraw = true self:loadScreen(mod) core.wait.addMaxTicks(savesize) @@ -678,6 +679,7 @@ function _M:instanciate(mod, name, new_game, no_reboot) if engine.interface.PlayerHotkeys then engine.interface.PlayerHotkeys:loadQuickHotkeys(mod.short_name, Savefile.hotkeys_file) end core.wait.disable() + profile.waiting_auth_no_redraw = false core.display.resetAllFonts("normal") diff --git a/game/engines/default/engine/PlayerProfile.lua b/game/engines/default/engine/PlayerProfile.lua index c6ec307f1f6b75c05328d8bf0bcfe69c042415f3..bb2ca52e9ec5ff52e10757bb0448218bf914e4ff 100644 --- a/game/engines/default/engine/PlayerProfile.lua +++ b/game/engines/default/engine/PlayerProfile.lua @@ -410,7 +410,7 @@ function _M:waitFirstAuth(timeout) timeout = timeout or 40 while self.waiting_auth and timeout > 0 do if not first then - core.display.forceRedraw() + if not self.waiting_auth_no_redraw then core.display.forceRedraw() end core.game.sleep(50) end local evt = core.profile.popEvent()