|
From: Tapio V. <aa...@us...> - 2010-01-30 15:18:58
|
Module: performous
Branch: master
Commit: d24d365b3d6e53170c939a8b1a58d1588d64d9a1
Author: Tapio Vierros <tap...@gm...>
Date: Sat Jan 30 17:17:53 2010 +0200
Fix stars in singing sometimes disappearing prematurely.
---
game/notegraph.cc | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/game/notegraph.cc b/game/notegraph.cc
index 7ae5fad..5ec0b26 100644
--- a/game/notegraph.cc
+++ b/game/notegraph.cc
@@ -17,12 +17,12 @@ NoteGraph::NoteGraph(Song const& song):
dimensions.stretch(1.0, 0.5); // Initial dimensions, probably overridden from somewhere
m_nlTop.setTarget(m_song.noteMax, true);
m_nlBottom.setTarget(m_song.noteMin, true);
+ for (Notes::const_iterator it = m_song.notes.begin(); it != m_song.notes.end(); ++it)
+ it->accuracy = 0.0; // Reset accuracy
reset();
}
void NoteGraph::reset() {
- for (Notes::const_iterator it = m_song.notes.begin(); it != m_song.notes.end(); ++it)
- it->accuracy = 0.0; // Reset accuracy
m_songit = m_song.notes.begin();
}
|