From 21ca14d5898a4c772de37b6a4dfd7c103adf8c6d Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Thu, 9 Jun 2011 18:12:38 -0400 Subject: [PATCH] Fix F11/F12 split timing sync adjuster. --- Docs/Changelog_sm5.txt | 4 ++++ src/ScreenSyncOverlay.cpp | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/Docs/Changelog_sm5.txt b/Docs/Changelog_sm5.txt index 0739778269..cce227e55d 100644 --- a/Docs/Changelog_sm5.txt +++ b/Docs/Changelog_sm5.txt @@ -8,6 +8,10 @@ ________________________________________________________________________________ StepMania 5.0 Preview 2 | 20110??? -------------------------------------------------------------------------------- +2011/06/09 +* [ScreenSyncOverlay] Ensure that F11 / F12 work with all charts due to Split + Timing. [Wolfman2000] + 2011/06/08 ---------- * Any notes in a fake segment or warp segment are completely ignored for diff --git a/src/ScreenSyncOverlay.cpp b/src/ScreenSyncOverlay.cpp index 3596c91e70..e91cf6569d 100644 --- a/src/ScreenSyncOverlay.cpp +++ b/src/ScreenSyncOverlay.cpp @@ -253,7 +253,14 @@ bool ScreenSyncOverlay::OverlayInput( const InputEventPlus &input ) case ChangeSongOffset: if( GAMESTATE->m_pCurSong != NULL ) + { GAMESTATE->m_pCurSong->m_SongTiming.m_fBeat0OffsetInSeconds += fDelta; + const vector& vpSteps = GAMESTATE->m_pCurSong->GetAllSteps(); + FOREACH( Steps*, const_cast&>(vpSteps), s ) + { + (*s)->m_Timing.m_fBeat0OffsetInSeconds += fDelta; + } + } break; } }