From 2729565a5f5a84d6d86f1e5b356c5772c43c249d Mon Sep 17 00:00:00 2001 From: Prince Frizzy Date: Tue, 21 Feb 2023 02:46:59 -0500 Subject: [PATCH] Fix wiggler glitching when being jumped on when small. (#287) --- src/game/behaviors/wiggler.inc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/game/behaviors/wiggler.inc.c b/src/game/behaviors/wiggler.inc.c index 24e6412f..b25ceb02 100644 --- a/src/game/behaviors/wiggler.inc.c +++ b/src/game/behaviors/wiggler.inc.c @@ -411,6 +411,11 @@ static void wiggler_act_fall_through_floor(void) { */ void wiggler_jumped_on_attack_handler(void) { cur_obj_play_sound_2(SOUND_OBJ_WIGGLER_ATTACKED); + // Check for if we've already defeated the Wiggler. + if (o->header.gfx.scale[0] == 1.0f) { + o->oAction = WIGGLER_ACT_KNOCKBACK; + return; + } o->oAction = WIGGLER_ACT_JUMPED_ON; o->oForwardVel = o->oVelY = 0.0f; o->oWigglerSquishSpeed = 0.4f;