simplify
This commit is contained in:
@@ -415,9 +415,8 @@ void ScreenEdit::PlayTicks()
|
|||||||
float fSecondsUntil = fTickSecond - GAMESTATE->m_fMusicSeconds;
|
float fSecondsUntil = fTickSecond - GAMESTATE->m_fMusicSeconds;
|
||||||
fSecondsUntil /= m_soundMusic.GetPlaybackRate(); /* 2x music rate means the time until the tick is halved */
|
fSecondsUntil /= m_soundMusic.GetPlaybackRate(); /* 2x music rate means the time until the tick is halved */
|
||||||
|
|
||||||
RageTimer when = GAMESTATE->m_LastBeatUpdate + (fSecondsUntil - (float)TICK_EARLY_SECONDS);
|
|
||||||
RageSoundParams p;
|
RageSoundParams p;
|
||||||
p.StartTime = when;
|
p.StartTime = GAMESTATE->m_LastBeatUpdate + (fSecondsUntil - (float)TICK_EARLY_SECONDS);
|
||||||
m_soundAssistTick.Play( &p );
|
m_soundAssistTick.Play( &p );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1104,9 +1104,8 @@ void ScreenGameplay::PlayTicks()
|
|||||||
float fSecondsUntil = fTickSecond - GAMESTATE->m_fMusicSeconds;
|
float fSecondsUntil = fTickSecond - GAMESTATE->m_fMusicSeconds;
|
||||||
fSecondsUntil /= GAMESTATE->m_SongOptions.m_fMusicRate; /* 2x music rate means the time until the tick is halved */
|
fSecondsUntil /= GAMESTATE->m_SongOptions.m_fMusicRate; /* 2x music rate means the time until the tick is halved */
|
||||||
|
|
||||||
RageTimer when = GAMESTATE->m_LastBeatUpdate + (fSecondsUntil - (float)TICK_EARLY_SECONDS);
|
|
||||||
RageSoundParams p;
|
RageSoundParams p;
|
||||||
p.StartTime = when;
|
p.StartTime = GAMESTATE->m_LastBeatUpdate + (fSecondsUntil - (float)TICK_EARLY_SECONDS);
|
||||||
m_soundAssistTick.Play( &p );
|
m_soundAssistTick.Play( &p );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user