[Xcode4] May as well fix switch warnings.

Still need some assistance for the linker error.
This commit is contained in:
Jason Felds
2011-07-20 11:11:04 -04:00
parent 87c16e9561
commit dbdab4759e
51 changed files with 1159 additions and 1033 deletions
+14 -11
View File
@@ -274,6 +274,7 @@ float PlayerStageStats::GetCurMaxPercentDancePoints() const
return fCurMaxPercentDancePoints;
}
// TODO: Make this use lua. Let more judgments be possible. -Wolfman2000
int PlayerStageStats::GetLessonScoreActual() const
{
int iScore = 0;
@@ -282,14 +283,15 @@ int PlayerStageStats::GetLessonScoreActual() const
{
switch( tns )
{
case TNS_AvoidMine:
case TNS_W5:
case TNS_W4:
case TNS_W3:
case TNS_W2:
case TNS_W1:
iScore += m_iTapNoteScores[tns];
break;
case TNS_AvoidMine:
case TNS_W5:
case TNS_W4:
case TNS_W3:
case TNS_W2:
case TNS_W1:
iScore += m_iTapNoteScores[tns];
default:
break;
}
}
@@ -297,9 +299,10 @@ int PlayerStageStats::GetLessonScoreActual() const
{
switch( hns )
{
case HNS_Held:
iScore += m_iHoldNoteScores[hns];
break;
case HNS_Held:
iScore += m_iHoldNoteScores[hns];
default:
break;
}
}