|
From: Tapio V. <aa...@us...> - 2009-12-11 12:43:19
|
Module: performous
Branch: dance
Commit: 6df62c63ca64a4adaecd924d83a5be0cbb1b77b6
Author: Tapio Vierros <tap...@gm...>
Date: Sun Nov 29 21:39:22 2009 +0200
Minimal points for long holds unless whammy is used.
---
game/guitargraph.cc | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/game/guitargraph.cc b/game/guitargraph.cc
index 82c9089..cff1825 100644
--- a/game/guitargraph.cc
+++ b/game/guitargraph.cc
@@ -186,7 +186,9 @@ void GuitarGraph::engine() {
double last = std::min(time, ev.dur->end);
double t = last - ev.holdTime;
if (t > 0) {
- m_score += t * 50.0;
+ // Minimal points for long holds unless whammy is used
+ double wfactor = (ev.dur->end - ev.dur->begin < 1.5 || ev.whammy.get() > 0.01) ? 1.0 : 0.2;
+ m_score += t * 50.0 * wfactor;
ev.holdTime = time;
}
if (last == ev.dur->end) endHold(fret);
|