fix editor jumping to odd positions in the music after going through options menus

This commit is contained in:
Glenn Maynard
2004-01-26 23:08:46 +00:00
parent d729a0e7aa
commit 269023f747
+8
View File
@@ -1434,6 +1434,14 @@ void ScreenEdit::HandleScreenMessage( const ScreenMessage SM )
case SM_GainFocus:
/* We do this ourself. */
SOUND->HandleSongTimer( false );
/* When another screen comes up, RageSounds takes over the sound timer. When we come
* back, put the timer back to where it was. */
GAMESTATE->m_fSongBeat = m_fTrailingBeat;
break;
case SM_LoseFocus:
/* Snap the trailing beat, in case we lose focus while tweening. */
m_fTrailingBeat = GAMESTATE->m_fSongBeat;
break;
}
}