From b88bba7bdb945297b2564a55c5886cd8c339bd19 Mon Sep 17 00:00:00 2001 From: Allanis Date: Thu, 12 Sep 2013 15:36:01 +0100 Subject: [PATCH] [Fix] Bug when exiting with rumble effect not cleared. --- src/spfx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/spfx.c b/src/spfx.c index 9ae82b7..51d1773 100644 --- a/src/spfx.c +++ b/src/spfx.c @@ -176,7 +176,9 @@ void spfx_clear(void) { spfx_destroy(spfx_stack_back, &spfx_nstack_back, i); /* Clear rumble. */ - shake_rad = 0; + shake_rad = 0.; + shake_pos.x = shake_pos.y = 0.; + shake_vel.x = shake_vel.y = 0.; } static void spfx_destroy(SPFX* layer, int* nlayer, int spfx) {