From 59c0003e981861f697c3705a2bbdfe32b4e2f176 Mon Sep 17 00:00:00 2001 From: Taylor Richards Date: Wed, 2 Aug 2017 06:13:52 -0400 Subject: [PATCH] reset ff afterburn flag at start of mission --- src/io/joy_ff.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/io/joy_ff.cpp b/src/io/joy_ff.cpp index 06a6e87..e6492b5 100644 --- a/src/io/joy_ff.cpp +++ b/src/io/joy_ff.cpp @@ -21,6 +21,7 @@ static SDL_Haptic *haptic = NULL; static int joy_ff_handling_scaler = 0; static int Joy_ff_directional_hit_effect_enabled = 1; static int Joy_rumble = 0; +static int Joy_ff_afterburning = 0; typedef struct { SDL_HapticEffect eff; @@ -409,6 +410,8 @@ void joy_ff_mission_init(vector v) v.xyz.z = 0.0f; joy_ff_handling_scaler = (int) ((vm_vec_mag(&v) + 1.3f) * 5.0f); + + Joy_ff_afterburning = 0; } void joy_reacquire_ff() @@ -733,8 +736,6 @@ void joy_ff_play_reload_effect() joy_ff_start_effect(&pDock, "Dock (Reload)"); } -static int Joy_ff_afterburning = 0; - void joy_ff_afterburn_on() { if ( !Joy_ff_enabled ) { -- 2.39.2