More abstraction.
This commit is contained in:
+1
-1
@@ -122,7 +122,7 @@ void Inventory::Update( float fDelta )
|
||||
Song &song = *GAMESTATE->m_pCurSong;
|
||||
// use items if this player is CPU-controlled
|
||||
if( m_pPlayerState->m_PlayerController != PC_HUMAN &&
|
||||
GAMESTATE->m_Position.m_fSongBeat < song.m_SongTiming.GetBeatFromElapsedTime(song.lastSecond) )
|
||||
GAMESTATE->m_Position.m_fSongBeat < song.GetLastBeat() )
|
||||
{
|
||||
// every 1 seconds, try to use an item
|
||||
int iLastSecond = (int)(RageTimer::GetTimeSinceStartFast() - fDelta);
|
||||
|
||||
Reference in New Issue
Block a user