From af687ecb9d4d2a880dac35612e38a69c972e46ad Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 24 May 2004 00:43:39 +0000 Subject: [PATCH] don't rescale RADAR_NUM_* down in GetFinalEvalStatsAndSongs --- stepmania/src/GameState.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stepmania/src/GameState.cpp b/stepmania/src/GameState.cpp index 0582a900e7..8f049f0a4c 100644 --- a/stepmania/src/GameState.cpp +++ b/stepmania/src/GameState.cpp @@ -966,11 +966,11 @@ void GameState::GetFinalEvalStatsAndSongs( StageStats& statsOut, vector& if(!vSongsOut.size()) return; - /* XXX: I have no idea if this is correct--but it's better than overflowing, - * anyway. -glenn */ + /* Scale radar percentages back down to roughly 0..1. Don't scale RADAR_NUM_TAPS_AND_HOLDS + * and the rest, which are counters. */ FOREACH_EnabledPlayer( p ) { - for( int r = 0; r < NUM_RADAR_CATEGORIES; r++) + for( int r = 0; r < RADAR_NUM_TAPS_AND_HOLDS; r++) { statsOut.fRadarPossible[p][r] /= vSongsOut.size(); statsOut.fRadarActual[p][r] /= vSongsOut.size();