Disconnect from SMO when syncing or in jukebox to avoid a crash.
This commit is contained in:
@@ -16,6 +16,8 @@ REGISTER_SCREEN_CLASS( ScreenGameplaySyncMachine );
|
|||||||
void ScreenGameplaySyncMachine::Init()
|
void ScreenGameplaySyncMachine::Init()
|
||||||
{
|
{
|
||||||
m_bForceNoNetwork = true;
|
m_bForceNoNetwork = true;
|
||||||
|
// The server crashes if syncing is attempted while connected to SMO. -Kyz
|
||||||
|
NSMAN->CloseConnection();
|
||||||
|
|
||||||
GAMESTATE->m_PlayMode.Set( PLAY_MODE_REGULAR );
|
GAMESTATE->m_PlayMode.Set( PLAY_MODE_REGULAR );
|
||||||
GAMESTATE->SetCurrentStyle( GAMEMAN->GetHowToPlayStyleForGame(GAMESTATE->m_pCurGame), PLAYER_INVALID );
|
GAMESTATE->SetCurrentStyle( GAMEMAN->GetHowToPlayStyleForGame(GAMESTATE->m_pCurGame), PLAYER_INVALID );
|
||||||
|
|||||||
@@ -173,6 +173,8 @@ ScreenJukebox::ScreenJukebox()
|
|||||||
static LocalizedString NO_MATCHING_STEPS("ScreenJukebox", "NoMatchingSteps");
|
static LocalizedString NO_MATCHING_STEPS("ScreenJukebox", "NoMatchingSteps");
|
||||||
void ScreenJukebox::Init()
|
void ScreenJukebox::Init()
|
||||||
{
|
{
|
||||||
|
// The server crashes if syncing is attempted while connected to SMO. -Kyz
|
||||||
|
NSMAN->CloseConnection();
|
||||||
// ScreenJukeboxMenu must set this
|
// ScreenJukeboxMenu must set this
|
||||||
ASSERT( GAMESTATE->GetCurrentStyle(PLAYER_INVALID) != NULL );
|
ASSERT( GAMESTATE->GetCurrentStyle(PLAYER_INVALID) != NULL );
|
||||||
GAMESTATE->m_PlayMode.Set( PLAY_MODE_REGULAR );
|
GAMESTATE->m_PlayMode.Set( PLAY_MODE_REGULAR );
|
||||||
|
|||||||
Reference in New Issue
Block a user