Add PlayerState::GetDisplayedPosition() and PlayerState::GetDisplayedTiming()

which returns the dispalyed position and timing (based on the timing display
switch in the editor), so less copy n paste in ArrowEffects and NoteField.
This commit is contained in:
Thai Pangsakulyanont
2011-09-14 12:20:42 +07:00
parent 48ca50940a
commit 8fdf42e2bb
4 changed files with 31 additions and 47 deletions
+1 -2
View File
@@ -222,8 +222,7 @@ float ArrowEffects::GetYOffset( const PlayerState* pPlayerState, int iCol, float
bIsPastPeakOut = true;
float fYOffset = 0;
const SongPosition &position = GAMESTATE->m_bIsUsingStepTiming
? pPlayerState->m_Position : GAMESTATE->m_Position;
const SongPosition &position = pPlayerState->GetDisplayedPosition();
float fSongBeat = position.m_fSongBeatVisible;