fix: Do not recreate GUI on module load
This commit is contained in:
parent
ee468c5d71
commit
7651e0f732
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue