Skip to content

Commit

Permalink
add nssss nsssc thread fix scrollspeed
Browse files Browse the repository at this point in the history
  • Loading branch information
eithwa committed Feb 23, 2020
1 parent c03b5b5 commit 93f2be6
Show file tree
Hide file tree
Showing 6 changed files with 243 additions and 178 deletions.
4 changes: 2 additions & 2 deletions src/ArrowEffects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ float ArrowGetYOffset( PlayerNumber pn, int iCol, float fNoteBeat )
{
float fSongBeat = GAMESTATE->m_fSongBeat;
float fBeatsUntilStep = fNoteBeat - fSongBeat;
float fYOffsetBeatSpacing = fBeatsUntilStep * ARROW_SPACING;
float fYOffsetBeatSpacing = fBeatsUntilStep * ARROW_SPACING/GAMESTATE->m_SongOptions.m_fMusicRate;
fYOffset += fYOffsetBeatSpacing * (1-GAMESTATE->m_CurrentPlayerOptions[pn].m_fTimeSpacing);
}

Expand All @@ -40,7 +40,7 @@ float ArrowGetYOffset( PlayerNumber pn, int iCol, float fNoteBeat )
float fSecondsUntilStep = fNoteSeconds - fSongSeconds;
float fBPM = GAMESTATE->m_CurrentPlayerOptions[pn].m_fScrollBPM;
float fBPS = fBPM/60.f;
float fYOffsetTimeSpacing = fSecondsUntilStep * fBPS * ARROW_SPACING;
float fYOffsetTimeSpacing = fSecondsUntilStep * fBPS * ARROW_SPACING/GAMESTATE->m_SongOptions.m_fMusicRate;
fYOffset += fYOffsetTimeSpacing * GAMESTATE->m_CurrentPlayerOptions[pn].m_fTimeSpacing;
}

Expand Down
Loading

0 comments on commit 93f2be6

Please sign in to comment.