Fix InfocenterDoor::HandleClick

This commit is contained in:
Christian Semmler 2024-02-02 16:26:57 -05:00
parent fbeaae3a62
commit 250d5a1643

View File

@ -120,8 +120,7 @@ MxLong InfocenterDoor::HandleClick(LegoControlManagerEvent& p_param)
action.SetAtomId(*g_infodoorScript); action.SetAtomId(*g_infodoorScript);
BackgroundAudioManager()->LowerVolume(); BackgroundAudioManager()->LowerVolume();
Start(&action); Start(&action);
result = 1; goto done;
return 0;
} }
} }
else { else {
@ -130,11 +129,12 @@ MxLong InfocenterDoor::HandleClick(LegoControlManagerEvent& p_param)
action.SetAtomId(*g_infodoorScript); action.SetAtomId(*g_infodoorScript);
BackgroundAudioManager()->LowerVolume(); BackgroundAudioManager()->LowerVolume();
Start(&action); Start(&action);
result = 1; goto done;
return 0;
} }
TransitionManager()->StartTransition(MxTransitionManager::e_pixelation, 50, FALSE, FALSE); TransitionManager()->StartTransition(MxTransitionManager::e_pixelation, 50, FALSE, FALSE);
done:
result = 1; result = 1;
break; break;
} }