Permalink
Browse files

neverball patch: Fix factor

  • Loading branch information...
derf committed Dec 16, 2011
1 parent 540dcaa commit 588897c581be795a17399034dfb9ccbc439c4a66
Showing with 2 additions and 2 deletions.
  1. +2 −2 neverball/tilt_wii.patch
@@ -172,15 +172,15 @@ 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;
}
- 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;

0 comments on commit 588897c

Please sign in to comment.