summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-12-16 23:40:19 +0100
committerDaniel Friesel <derf@finalrewind.org>2011-12-16 23:40:19 +0100
commit588897c581be795a17399034dfb9ccbc439c4a66 (patch)
tree03397115ee6213afb1e93ef09332bfdb38ccb7fe
parent540dcaa8c7223a955475b42d199229082a552a98 (diff)
neverball patch: Fix factor
-rw-r--r--neverball/tilt_wii.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/neverball/tilt_wii.patch b/neverball/tilt_wii.patch
index 85bd0fa..3a096bf 100644
--- a/neverball/tilt_wii.patch
+++ b/neverball/tilt_wii.patch
@@ -172,7 +172,7 @@ index 44eaf73..5427540 100644
+
+ if ((bal_y >= -1) && (bal_y <= 1))
{
-+ bal_y *= 15;
++ bal_y *= 20;
state.x = (state.x * (FILTER - 1) +
- wiimote.tilt.y) / FILTER;
+ bal_y) / FILTER;
@@ -180,7 +180,7 @@ index 44eaf73..5427540 100644
- if (isnormal(wiimote.tilt.x))
+ if ((bal_x >= -1) && (bal_x <= 1))
{
-+ bal_x *= 15;
++ bal_x *= 20;
state.z = (state.z * (FILTER - 1) +
- wiimote.tilt.x) / FILTER;
+ bal_x) / FILTER;