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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user