disable sync in course modes
This commit is contained in:
@@ -1922,6 +1922,10 @@ void GameState::ResetOriginalSyncData()
|
||||
|
||||
bool GameState::IsSyncDataChanged()
|
||||
{
|
||||
// Can't sync in course modes
|
||||
if( IsCourseMode() )
|
||||
return false;
|
||||
|
||||
if( m_pCurSong && *m_pTimingDataOriginal != m_pCurSong->m_Timing )
|
||||
return true;
|
||||
if( m_fGlobalOffsetSecondsOriginal != PREFSMAN->m_fGlobalOffsetSeconds )
|
||||
|
||||
@@ -94,9 +94,9 @@ void ScreenSyncOverlay::UpdateText()
|
||||
default: ASSERT(0);
|
||||
}
|
||||
|
||||
if( GAMESTATE->m_pCurSong == NULL )
|
||||
if( GAMESTATE->m_pCurSong == NULL || GAMESTATE->IsCourseMode() ) // sync controls not available
|
||||
{
|
||||
m_textStatus.SetText( "" );
|
||||
m_textStatus.SetText( s );
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -161,8 +161,6 @@ bool ScreenSyncOverlay::OverlayInput( const DeviceInput& DeviceI, const InputEve
|
||||
switch( DeviceI.button )
|
||||
{
|
||||
case KEY_F4:
|
||||
SCREENMAN->SystemMessage( "Sync changes reverted." );
|
||||
break;
|
||||
case KEY_F9:
|
||||
case KEY_F10:
|
||||
case KEY_F11:
|
||||
@@ -180,6 +178,7 @@ bool ScreenSyncOverlay::OverlayInput( const DeviceInput& DeviceI, const InputEve
|
||||
switch( DeviceI.button )
|
||||
{
|
||||
case KEY_F4:
|
||||
SCREENMAN->SystemMessage( "Sync changes reverted." );
|
||||
GAMESTATE->RevertSyncChanges();
|
||||
break;
|
||||
case KEY_F9:
|
||||
|
||||
Reference in New Issue
Block a user