fix warnings
This commit is contained in:
@@ -36,7 +36,7 @@ XToThemedString( PlayMode );
|
||||
StringToX( PlayMode );
|
||||
|
||||
|
||||
RankingCategory AverageMeterToRankingCategory( float fAverageMeter )
|
||||
RankingCategory AverageMeterToRankingCategory( int iAverageMeter )
|
||||
{
|
||||
if( fAverageMeter <= 3 ) return RANKING_A;
|
||||
else if( fAverageMeter <= 6 ) return RANKING_B;
|
||||
|
||||
@@ -227,7 +227,7 @@ RankingCategory StringToRankingCategory( const CString& rc );
|
||||
const CString RANKING_TO_FILL_IN_MARKER[NUM_PLAYERS] = {"#P1#","#P2#"};
|
||||
inline bool IsRankingToFillIn( const CString& sName ) { return !sName.empty() && sName[0]=='#'; }
|
||||
|
||||
RankingCategory AverageMeterToRankingCategory( float fAverageMeter );
|
||||
RankingCategory AverageMeterToRankingCategory( int iAverageMeter );
|
||||
|
||||
const int NUM_RANKING_LINES = 5;
|
||||
|
||||
|
||||
@@ -286,7 +286,6 @@ void AddPlayerStatsToProfile( Profile *pProfile, const StageStats &ss, PlayerNum
|
||||
ASSERT( ss.vpSongs.size() == ss.vpSteps[pn].size() );
|
||||
for( unsigned i=0; i<ss.vpSongs.size(); i++ )
|
||||
{
|
||||
Song *pSong = ss.vpSongs[i];
|
||||
Steps *pSteps = ss.vpSteps[pn][i];
|
||||
|
||||
pProfile->m_iNumSongsPlayedByPlayMode[ss.playMode]++;
|
||||
@@ -637,7 +636,7 @@ void GameState::FinishStage()
|
||||
// Update profile stats
|
||||
Profile* pMachineProfile = PROFILEMAN->GetMachineProfile();
|
||||
|
||||
int iGameplaySeconds = g_CurStageStats.fGameplaySeconds;
|
||||
int iGameplaySeconds = (int)truncf(g_CurStageStats.fGameplaySeconds);
|
||||
|
||||
pMachineProfile->m_iTotalGameplaySeconds += iGameplaySeconds;
|
||||
pMachineProfile->m_iCurrentCombo = 0;
|
||||
|
||||
@@ -959,8 +959,8 @@ void ScreenEvaluation::CommitScores(
|
||||
if( stageStats.bFailed[p] )
|
||||
continue;
|
||||
|
||||
float fAverageMeter = stageStats.GetAverageMeter(p);
|
||||
rcOut[p] = AverageMeterToRankingCategory( fAverageMeter );
|
||||
int iAverageMeter = stageStats.GetAverageMeter(p);
|
||||
rcOut[p] = AverageMeterToRankingCategory( iAverageMeter );
|
||||
|
||||
PROFILEMAN->AddCategoryScore( st, rcOut[p], p, hs, iPersonalHighScoreIndexOut[p], iMachineHighScoreIndexOut[p] );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user