From 247cddd6073ac507cf4f5a20ffc5f0ae00c267e9 Mon Sep 17 00:00:00 2001 From: Vecais Dumais Laacis Date: Tue, 7 Aug 2007 11:18:51 +0000 Subject: [PATCH] little hack to force update m_bRadarValuesCached - someone needs to find out why m_bRadarValuesCached is set to true but in fact m_bRadarValuesCached values are invalid this doesnt occur on all courses --- stepmania/src/PaneDisplay.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stepmania/src/PaneDisplay.cpp b/stepmania/src/PaneDisplay.cpp index 2b48a96805..5648aad93a 100644 --- a/stepmania/src/PaneDisplay.cpp +++ b/stepmania/src/PaneDisplay.cpp @@ -126,6 +126,10 @@ void PaneDisplay::SetContent( PaneContents c ) } else if( pTrail ) { + //little hack to force update m_bRadarValuesCached - someone needs to find out why m_bRadarValuesCached is set to true but in fact m_bRadarValuesCached values are invalid + //this doesnt occur on all courses + if( pTrail->m_bRadarValuesCached && ( pTrail->m_CachedRadarValues[RadarCategory_TapsAndHolds]==-1 ) ) + pTrail->m_bRadarValuesCached = false; rv = pTrail->GetRadarValues(); pHSL = &PROFILEMAN->GetProfile(slot)->GetCourseHighScoreList(pCourse, pTrail); }