allow display of negative dance points
stop counting dance points after fail
This commit is contained in:
@@ -256,8 +256,11 @@ float StageStats::GetPercentDancePoints( PlayerNumber pn ) const
|
||||
if( iActualDancePoints[pn] == iPossibleDancePoints[pn] )
|
||||
return 1; // correct for rounding error
|
||||
|
||||
ASSERT( iActualDancePoints[pn] <= iPossibleDancePoints[pn] );
|
||||
|
||||
float fPercentDancePoints = iActualDancePoints[pn] / (float)iPossibleDancePoints[pn];
|
||||
return clamp( fPercentDancePoints, 0, 1 );
|
||||
|
||||
return fPercentDancePoints;
|
||||
}
|
||||
|
||||
void StageStats::SetLifeRecord( PlayerNumber pn, float life, float pos )
|
||||
|
||||
Reference in New Issue
Block a user