fix warnings
This commit is contained in:
@@ -170,8 +170,8 @@ void GameState::EndGame()
|
|||||||
Profile* pMachineProfile = PROFILEMAN->GetMachineProfile();
|
Profile* pMachineProfile = PROFILEMAN->GetMachineProfile();
|
||||||
|
|
||||||
int iGameplaySeconds = 0;
|
int iGameplaySeconds = 0;
|
||||||
for( int i=0; i<m_vPlayedStageStats.size(); i++ )
|
for( unsigned i=0; i<m_vPlayedStageStats.size(); i++ )
|
||||||
iGameplaySeconds += m_vPlayedStageStats[i].fGameplaySeconds;
|
iGameplaySeconds += (int) roundf(m_vPlayedStageStats[i].fGameplaySeconds);
|
||||||
|
|
||||||
pMachineProfile->m_iTotalPlaySeconds += iPlaySeconds;
|
pMachineProfile->m_iTotalPlaySeconds += iPlaySeconds;
|
||||||
pMachineProfile->m_iTotalGameplaySeconds += iGameplaySeconds;
|
pMachineProfile->m_iTotalGameplaySeconds += iGameplaySeconds;
|
||||||
@@ -183,7 +183,8 @@ void GameState::EndGame()
|
|||||||
if( !IsHumanPlayer(p) )
|
if( !IsHumanPlayer(p) )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
for( int i=0; i<m_vPlayedStageStats.size(); i++ )
|
unsigned i;
|
||||||
|
for( i=0; i<m_vPlayedStageStats.size(); i++ )
|
||||||
{
|
{
|
||||||
const StageStats& ss = m_vPlayedStageStats[i];
|
const StageStats& ss = m_vPlayedStageStats[i];
|
||||||
pMachineProfile->m_iNumSongsPlayedByPlayMode[ss.playMode]++;
|
pMachineProfile->m_iNumSongsPlayedByPlayMode[ss.playMode]++;
|
||||||
@@ -203,7 +204,7 @@ void GameState::EndGame()
|
|||||||
GAMESTATE->m_CurStageStats.iCurCombo[p] :
|
GAMESTATE->m_CurStageStats.iCurCombo[p] :
|
||||||
0;
|
0;
|
||||||
|
|
||||||
for( int i=0; i<m_vPlayedStageStats.size(); i++ )
|
for( i=0; i<m_vPlayedStageStats.size(); i++ )
|
||||||
{
|
{
|
||||||
const StageStats& ss = m_vPlayedStageStats[i];
|
const StageStats& ss = m_vPlayedStageStats[i];
|
||||||
pPlayerProfile->m_iNumSongsPlayedByPlayMode[ss.playMode]++;
|
pPlayerProfile->m_iNumSongsPlayedByPlayMode[ss.playMode]++;
|
||||||
|
|||||||
Reference in New Issue
Block a user