|
From: Yoda-JM <yo...@us...> - 2009-09-06 14:19:34
|
Module: performous
Branch: master
Commit: 4b292149663c9688f7b95605d466228c1d53674d
Author: Vincent Le Ligeour <yo...@us...>
Date: Sun Sep 6 16:19:18 2009 +0200
Removed MacOSX error (should be tested)
---
game/guitargraph.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/game/guitargraph.cc b/game/guitargraph.cc
index c906bed..fe5ab38 100644
--- a/game/guitargraph.cc
+++ b/game/guitargraph.cc
@@ -18,7 +18,7 @@ namespace {
float time2y(float t) { return -timescale * (t - past) / (future - past); }
float time2a(float t) {
float a = clamp(1.0 - t / future); // Note: we want 1.0 alpha already at zero t.
- return std::pow(a, 0.8); // Nicer curve
+ return std::pow(a, 0.8f); // Nicer curve
}
float y2a(float y) { return time2a(past - y / timescale * (future - past)); }
const double maxTolerance = 0.15;
|