From 780ffb8cba94f4328dbfd86dbc115475992822a2 Mon Sep 17 00:00:00 2001 From: Sunk <69110309+Sunketchupm@users.noreply.github.com> Date: Mon, 11 Sep 2023 12:37:18 -0400 Subject: [PATCH] Hopefully fix purple switches expanding infinitely (#470) --- src/game/behaviors/purple_switch.inc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/behaviors/purple_switch.inc.c b/src/game/behaviors/purple_switch.inc.c index c0b58cef..87235fef 100644 --- a/src/game/behaviors/purple_switch.inc.c +++ b/src/game/behaviors/purple_switch.inc.c @@ -44,7 +44,7 @@ void bhv_purple_switch_loop(void) { */ case PURPLE_SWITCH_PRESSED: cur_obj_scale_over_time(2, 3, 1.5f, 0.2f); - if (o->oTimer == 3) { + if (o->oTimer >= 3) { cur_obj_play_sound_2(SOUND_GENERAL2_PURPLE_SWITCH); o->oAction = PURPLE_SWITCH_TICKING; cur_obj_shake_screen(SHAKE_POS_SMALL);