Skip to content
This repository has been archived by the owner on Nov 11, 2023. It is now read-only.

Commit

Permalink
neverball patch: Fix factor
Browse files Browse the repository at this point in the history
  • Loading branch information
derf committed Dec 16, 2011
1 parent 540dcaa commit 588897c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions neverball/tilt_wii.patch
Expand Up @@ -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;
Expand Down

0 comments on commit 588897c

Please sign in to comment.