From 5c83d529ab4a41e3423e52cd16063533bdca3fcf Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Mon, 6 Jun 2011 23:00:07 -0400 Subject: [PATCH] Remove faulty shortcut code for hand calcs. Unfortunately, to maintain accuracy, this will invalidate the ca-- *beaten to the floor with the nya cat* --- Docs/Changelog_sm5.txt | 2 ++ src/NoteDataUtil.cpp | 2 +- src/Song.cpp | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Docs/Changelog_sm5.txt b/Docs/Changelog_sm5.txt index 02a780e44e..e9ccf1cc69 100644 --- a/Docs/Changelog_sm5.txt +++ b/Docs/Changelog_sm5.txt @@ -16,6 +16,8 @@ StepMania 5.0 Preview 2 | 20110??? this changes the behavior slightly: it is the first enabled player, or master player, that gets the ticks now. A better solution will be looked at in the future. [Wolfman2000] +* [NoteDataUtil] Fix a radar issue involving hands. Unfortunately, this means + yet another cache reload for accuracy purposes. [Wolfman2000] 2011/06/04 ---------- diff --git a/src/NoteDataUtil.cpp b/src/NoteDataUtil.cpp index 022691c700..ccb9faf2b4 100644 --- a/src/NoteDataUtil.cpp +++ b/src/NoteDataUtil.cpp @@ -886,7 +886,7 @@ void NoteDataUtil::CalculateRadarValues( const NoteData &in, float fSongSeconds, case RadarCategory_Jumps: out[rc] = (float) stats.jumps; break; case RadarCategory_Holds: out[rc] = (float) in.GetNumHoldNotes(); break; case RadarCategory_Mines: out[rc] = (float) in.GetNumMines(); break; - case RadarCategory_Hands: out[rc] = (float) stats.hands; break; + case RadarCategory_Hands: out[rc] = (float) in.GetNumHands(); break; case RadarCategory_Rolls: out[rc] = (float) in.GetNumRolls(); break; case RadarCategory_Lifts: out[rc] = (float) in.GetNumLifts(); break; case RadarCategory_Fakes: out[rc] = (float) in.GetNumFakes(); break; diff --git a/src/Song.cpp b/src/Song.cpp index cc57bccd9b..62696a93e2 100644 --- a/src/Song.cpp +++ b/src/Song.cpp @@ -41,7 +41,7 @@ * @brief The internal version of the cache for StepMania. * * Increment this value to invalidate the current cache. */ -const int FILE_CACHE_VERSION = 178; +const int FILE_CACHE_VERSION = 179; /** @brief How long does a song sample last by default? */ const float DEFAULT_MUSIC_SAMPLE_LENGTH = 12.f;