|
From: Tapio V. <aa...@us...> - 2009-12-09 22:05:55
|
Module: performous
Branch: dance
Commit: 84853c4725686ce9f01e768b009180e35afdb5ab
Author: Tapio Vierros <tap...@gm...>
Date: Wed Dec 9 22:09:40 2009 +0200
Fix warnings about unhandled switch-cases.
---
game/notes.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/game/notes.cc b/game/notes.cc
index 1bfe3ae..16850e8 100644
--- a/game/notes.cc
+++ b/game/notes.cc
@@ -69,7 +69,7 @@ double Note::scoreMultiplier(double error) const {
case FREESTYLE: power += 1.0; return 1.0;
case NORMAL: case SLIDE: max = 1.0; break;
case GOLDEN: max = 2.0; break;
- case SLEEP: break;
+ case SLEEP: case TAP: case HOLDBEGIN: case HOLDEND: case MINE: break;
}
double accuracy = clamp(1.5 - error, 0.0, 1.0);
power += accuracy;
|