1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-01 23:12:49 +02:00

Removed GameEngine::curInt member

- event processing is now initiated by GameEngine instead of weird chain
engine -> player interface -> engine
- introduced GameEngineUser interface (implemented by GameInstance) to
remove mutual depedency between GameEngine and GameInstance (some
technically still remains for now, in form of some free functions)
This commit is contained in:
Ivan Savenko
2025-02-27 22:18:31 +00:00
parent f06e707108
commit d3de0d525f
16 changed files with 87 additions and 72 deletions

View File

@@ -666,15 +666,15 @@ void CServerHandler::endGameplay()
if(CMM)
{
ENGINE->curInt = CMM.get();
CMM->enable();
CMM->playMusic();
CMM->makeActiveInterface();
}
else
{
auto mainMenu = CMainMenu::create();
ENGINE->curInt = mainMenu.get();
mainMenu->playMusic();
mainMenu->makeActiveInterface();
}
}