Fixed voltage calculation by making avg_bps a float instead of an int.

This commit is contained in:
Kyzentun
2015-03-23 22:41:15 -06:00
parent a2798e16f4
commit 96259ab951
+1 -1
View File
@@ -1122,7 +1122,7 @@ void NoteDataUtil::CalculateRadarValues( const NoteData &in, float fSongSeconds,
out[RadarCategory_Stream]= CAP_RADAR((total_taps / fSongSeconds) / 7.0f);
// As seen in GetVoltageRadarValue: Don't use the timing data, just
// pretend the beats are evenly spaced. -Kyz
int avg_bps= in.GetLastBeat() / fSongSeconds;
float avg_bps= in.GetLastBeat() / fSongSeconds;
out[RadarCategory_Voltage]= CAP_RADAR(
((max_notes_in_voltage_window / voltage_window_beats) * avg_bps) /
10.0f);