[Fix] spfx_clear() also clears rumble.
This commit is contained in:
parent
e331a8e8b6
commit
2381ca3a36
@ -145,11 +145,17 @@ void spfx_add(int effect,
|
||||
|
||||
void spfx_clear(void) {
|
||||
int i;
|
||||
|
||||
/* Clear front layer. */
|
||||
for(i = spfx_nstack_front-1; i >= 0; i--)
|
||||
spfx_destroy(spfx_stack_front, &spfx_nstack_front, i);
|
||||
|
||||
/* Clear back layer. */
|
||||
for(i = spfx_nstack_back-1; i >= 0; i--)
|
||||
spfx_destroy(spfx_stack_back, &spfx_nstack_back, i);
|
||||
|
||||
/* Clear rumble. */
|
||||
shake_rad = 0;
|
||||
}
|
||||
|
||||
static void spfx_destroy(SPFX* layer, int* nlayer, int spfx) {
|
||||
|
Loading…
Reference in New Issue
Block a user