aboutsummaryrefslogtreecommitdiff
path: root/src/rumble.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rumble.c')
-rw-r--r--src/rumble.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/rumble.c b/src/rumble.c
index 5e782b7..798b5ec 100644
--- a/src/rumble.c
+++ b/src/rumble.c
@@ -20,11 +20,8 @@ static fx32 timer = 0;
void set_rumble(f32 duration, f32 strength)
{
- // Sanity check
- if(strength > 1.0f)
- strength = 1.0f;
- else if(strength < 0.0f)
- strength = 0.0f;
+ // If game code is surpassing this something is wrong!!
+ assert(strength >= 0.f && strength <= 1.f);
XINPUT_VIBRATION state = {};
state.wLeftMotorSpeed = (unsigned)(strength * 65535.0f);