fix: Do not recreate GUI on module load

This commit is contained in:
Vsevolod Kremianskii 2020-08-08 11:43:57 +07:00
parent ee468c5d71
commit 7651e0f732

View file

@ -103,9 +103,9 @@ void Game::loadModule(const string &name, string entry) {
TheAudioPlayer.play(music, AudioType::Music);
}
loadHUD();
loadDebugGui();
loadDialogGui();
if (!_hud) loadHUD();
if (!_debug) loadDebugGui();
if (!_dialog) loadDialogGui();
_ticks = SDL_GetTicks();
_screen = Screen::InGame;