Simple loops.

This commit is contained in:
Jason Felds
2013-05-01 23:08:56 -04:00
parent fdda57beee
commit a762a7c882
+6 -6
View File
@@ -769,10 +769,10 @@ void ScreenGameplay::Init()
// Fill StageStats
STATSMAN->m_CurStageStats.m_vpPossibleSongs = m_apSongsQueue;
FOREACH( PlayerInfo, m_vPlayerInfo, pi )
for (PlayerInfo &pi : m_vPlayerInfo)
{
if( pi->GetPlayerStageStats() )
pi->GetPlayerStageStats()->m_vpPossibleSteps = pi->m_vpStepsQueue;
if( pi.GetPlayerStageStats() )
pi.GetPlayerStageStats()->m_vpPossibleSteps = pi.m_vpStepsQueue;
}
FOREACH_EnabledPlayerInfo( m_vPlayerInfo, pi )
@@ -2264,10 +2264,10 @@ bool ScreenGameplay::Input( const InputEventPlus &input )
{
if( input.mp != MultiPlayer_Invalid && GAMESTATE->IsMultiPlayerEnabled(input.mp) && iCol != -1 )
{
FOREACH( PlayerInfo, m_vPlayerInfo, pi )
for (PlayerInfo const &pi : m_vPlayerInfo)
{
if( input.mp == pi->m_mp )
pi->m_pPlayer->Step( iCol, -1, input.DeviceI.ts, false, bRelease );
if( input.mp == pi.m_mp )
pi.m_pPlayer->Step( iCol, -1, input.DeviceI.ts, false, bRelease );
}
return true;
}