From 307af17b6fc6d0bcb27669a89df3fb86d94fb656 Mon Sep 17 00:00:00 2001 From: MysterD Date: Sun, 4 Oct 2020 12:54:21 -0700 Subject: [PATCH] Fix snowman's lost his head dialog --- src/game/behaviors/snowman.inc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/game/behaviors/snowman.inc.c b/src/game/behaviors/snowman.inc.c index 718a2154..ae08b065 100644 --- a/src/game/behaviors/snowman.inc.c +++ b/src/game/behaviors/snowman.inc.c @@ -136,7 +136,9 @@ void bhv_snowmans_bottom_loop(void) { switch (o->oAction) { case 0: - if (should_start_or_continue_dialog(marioState, o) && set_mario_npc_dialog(&gMarioStates[0], 1, bhv_snowmans_bottom_loop_continue_dialog) == 2) { + if (should_start_or_continue_dialog(marioState, o) + && (is_point_within_radius_of_mario(o->oPosX, o->oPosY, o->oPosZ, 400) == 1) + && set_mario_npc_dialog(&gMarioStates[0], 1, bhv_snowmans_bottom_loop_continue_dialog) == 2) { sp1E = cutscene_object_with_dialog(CUTSCENE_DIALOG, o, DIALOG_110); if (sp1E) { o->oForwardVel = 10.0f;