mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
Hackfix for campaigns
This commit is contained in:
@@ -2469,14 +2469,9 @@ void CPlayerInterface::requestReturningToMainMenu(bool won)
|
||||
{
|
||||
CCS->soundh->ambientStopAllChannels();
|
||||
if(won && cb->getStartInfo()->campState)
|
||||
{
|
||||
CSH->state = EClientState::DISCONNECTING; // do not close server, it's not intended for campaign continuation
|
||||
CSH->startCampaignScenario(cb->getStartInfo()->campState);
|
||||
}
|
||||
else
|
||||
{
|
||||
sendCustomEvent(EUserEvent::RETURN_TO_MAIN_MENU);
|
||||
}
|
||||
}
|
||||
|
||||
void CPlayerInterface::sendCustomEvent( int code )
|
||||
|
||||
Reference in New Issue
Block a user