[Fix] Bug when exiting with rumble effect not cleared.
This commit is contained in:
parent
687ed47839
commit
b88bba7bdb
@ -176,7 +176,9 @@ void spfx_clear(void) {
|
|||||||
spfx_destroy(spfx_stack_back, &spfx_nstack_back, i);
|
spfx_destroy(spfx_stack_back, &spfx_nstack_back, i);
|
||||||
|
|
||||||
/* Clear rumble. */
|
/* 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) {
|
static void spfx_destroy(SPFX* layer, int* nlayer, int spfx) {
|
||||||
|
Loading…
Reference in New Issue
Block a user