Quiet some warnings. (vc8 certainly bitches alot more than vc6 did)
This commit is contained in:
@@ -279,7 +279,7 @@ void NoteData::SetTapAttackNote( int track, int row, Attack attack )
|
||||
TapNote::attack,
|
||||
TapNote::original,
|
||||
true,
|
||||
i,
|
||||
(uint8_t)i,
|
||||
false,
|
||||
0 );
|
||||
SetTapNote( track, row, tn );
|
||||
|
||||
@@ -93,7 +93,7 @@ void PercentageDisplay::Refresh()
|
||||
{
|
||||
// TRICKY: printf will round, but we want to truncate. Otherwise, we may display a percent
|
||||
// score that's too high and doesn't match up with the calculated grade.
|
||||
float fTruncInterval = powf(0.1f,PERCENT_TOTAL_SIZE);
|
||||
float fTruncInterval = powf(0.1f, (float) PERCENT_TOTAL_SIZE);
|
||||
fPercentDancePoints = ftruncf( fPercentDancePoints, fTruncInterval );
|
||||
|
||||
sNumToDisplay = ssprintf( "%*.*f%%", PERCENT_TOTAL_SIZE, PERCENT_DECIMAL_PLACES, fPercentDancePoints*100 );
|
||||
|
||||
Reference in New Issue
Block a user