disable sync in course modes

This commit is contained in:
Chris Danford
2005-05-20 18:38:53 +00:00
parent 4da8865e87
commit 9048ffa9de
2 changed files with 7 additions and 4 deletions
+4
View File
@@ -1922,6 +1922,10 @@ void GameState::ResetOriginalSyncData()
bool GameState::IsSyncDataChanged() bool GameState::IsSyncDataChanged()
{ {
// Can't sync in course modes
if( IsCourseMode() )
return false;
if( m_pCurSong && *m_pTimingDataOriginal != m_pCurSong->m_Timing ) if( m_pCurSong && *m_pTimingDataOriginal != m_pCurSong->m_Timing )
return true; return true;
if( m_fGlobalOffsetSecondsOriginal != PREFSMAN->m_fGlobalOffsetSeconds ) if( m_fGlobalOffsetSecondsOriginal != PREFSMAN->m_fGlobalOffsetSeconds )
+3 -4
View File
@@ -94,9 +94,9 @@ void ScreenSyncOverlay::UpdateText()
default: ASSERT(0); 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; return;
} }
@@ -161,8 +161,6 @@ bool ScreenSyncOverlay::OverlayInput( const DeviceInput& DeviceI, const InputEve
switch( DeviceI.button ) switch( DeviceI.button )
{ {
case KEY_F4: case KEY_F4:
SCREENMAN->SystemMessage( "Sync changes reverted." );
break;
case KEY_F9: case KEY_F9:
case KEY_F10: case KEY_F10:
case KEY_F11: case KEY_F11:
@@ -180,6 +178,7 @@ bool ScreenSyncOverlay::OverlayInput( const DeviceInput& DeviceI, const InputEve
switch( DeviceI.button ) switch( DeviceI.button )
{ {
case KEY_F4: case KEY_F4:
SCREENMAN->SystemMessage( "Sync changes reverted." );
GAMESTATE->RevertSyncChanges(); GAMESTATE->RevertSyncChanges();
break; break;
case KEY_F9: case KEY_F9: