|
From: Matti K. <mpk...@us...> - 2009-11-23 18:37:12
|
Module: performous
Branch: dance
Commit: 2738d057e167443f5edb2c2105b94eeeee876ac5
Author: Matti Kemppainen <mpk...@us...>
Date: Mon Nov 23 20:36:55 2009 +0200
Showpoints on the screen, initial scorefactor.
---
game/dancegraph.cc | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/game/dancegraph.cc b/game/dancegraph.cc
index 4787728..269e066 100644
--- a/game/dancegraph.cc
+++ b/game/dancegraph.cc
@@ -47,7 +47,7 @@ DanceGraph::DanceGraph(Audio& audio, Song const& song):
m_correctness(0.0, 5.0),
m_flow_direction(1),
m_score(),
- m_scoreFactor(),
+ m_scoreFactor(1),
m_streak(),
m_longestStreak(),
m_gamingMode("dance-single")
@@ -118,7 +118,7 @@ void DanceGraph::engine() {
/// Handles scoring and such
void DanceGraph::dance(double time, input::Event const& ev) {
for (DanceNotes::iterator& it = m_notesIt; it != m_notes.end() && it->note.begin <= time + maxTolerance; ++it) {
- if(!it->isHit) {
+ if(!it->isHit && ev.button == it->note.note) {
it->isHit = true;
double p = points(it->note.begin - time);
it->score = p;
|