move timespacing on player options screen

This commit is contained in:
Chris Danford
2003-04-24 06:16:04 +00:00
parent 674f1c1704
commit 977ad34638
9 changed files with 74 additions and 101 deletions
+2 -2
View File
@@ -28,7 +28,7 @@ float g_fExpandSeconds = 0;
float ArrowGetYOffset( PlayerNumber pn, float fNoteBeat )
{
float fYOffset;
if( !GAMESTATE->m_PlayerOptions->m_bTimeSpacing )
if( !GAMESTATE->m_PlayerOptions[pn].m_bTimeSpacing )
{
float fSongBeat = GAMESTATE->m_fSongBeat;
float fBeatsUntilStep = fNoteBeat - fSongBeat;
@@ -39,7 +39,7 @@ float ArrowGetYOffset( PlayerNumber pn, float fNoteBeat )
float fSongSeconds = GAMESTATE->m_fMusicSeconds;
float fNoteSeconds = GAMESTATE->m_pCurSong->GetElapsedTimeFromBeat(fNoteBeat);
float fSecondsUntilStep = fNoteSeconds - fSongSeconds;
float fBPM = GAMESTATE->m_pCurSong->GetDominantBPM();
float fBPM = GAMESTATE->m_PlayerOptions[pn].m_fScrollBPM;
float fBPS = fBPM/60.f;
fYOffset = fSecondsUntilStep * fBPS * ARROW_SPACING;
}