Fix snowman's lost his head dialog

This commit is contained in:
MysterD 2020-10-04 12:54:21 -07:00
parent b9813acbc5
commit 307af17b6f

View file

@ -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;