From cb5ad60bf99115e02270f42625a1fd81bd53483a Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Fri, 18 Aug 2006 04:47:11 +0000 Subject: [PATCH] no song sync in courses --- stepmania/src/ScreenDebugOverlay.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stepmania/src/ScreenDebugOverlay.cpp b/stepmania/src/ScreenDebugOverlay.cpp index 9a183b898d..b3cb729485 100644 --- a/stepmania/src/ScreenDebugOverlay.cpp +++ b/stepmania/src/ScreenDebugOverlay.cpp @@ -508,6 +508,9 @@ class DebugLineAutosync : public IDebugLine virtual void Do( RString &sMessageOut ) { SongOptions::AutosyncType as = enum_add2( GAMESTATE->m_SongOptions.GetSong().m_AutosyncType, 1 ); + bool bAllowSongAutosync = !GAMESTATE->IsCourseMode(); + if( !bAllowSongAutosync && as == SongOptions::AUTOSYNC_SONG ) + as = SongOptions::AUTOSYNC_MACHINE; wrap( (int&)as, SongOptions::NUM_AUTOSYNC_TYPES ); SO_GROUP_ASSIGN( GAMESTATE->m_SongOptions, ModsLevel_Song, m_AutosyncType, as ); MESSAGEMAN->Broadcast( Message_AutosyncChanged );