aboutsummaryrefslogtreecommitdiffstats
path: root/libgamepad_construct_force_feedback_effect__.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libgamepad_construct_force_feedback_effect__.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgamepad_construct_force_feedback_effect__.c b/libgamepad_construct_force_feedback_effect__.c
index f84314d..5c99a13 100644
--- a/libgamepad_construct_force_feedback_effect__.c
+++ b/libgamepad_construct_force_feedback_effect__.c
@@ -13,7 +13,7 @@ libgamepad_construct_force_feedback_effect__(struct ff_effect *effectp, const st
memset(effectp, 0, sizeof(*effectp));
effectp->id = -1;
}
- direction += 0.5;
+ direction += (double)1 / 2;
fmod(direction, 1);
if (direction < 0)
direction = 1 - direction;