diff options
| author | Eblo <7004497+Eblo@users.noreply.github.com> | 2025-04-09 14:43:43 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-09 14:43:43 -0400 |
| commit | 27fe6ca6aae5938c43cc0b79e01572ff8cb80554 (patch) | |
| tree | b9eed633aa484ac9c5ce138fbff3bb85463051a7 | |
| parent | 60a34b8828b08bb650cd9f95a1c83918f191505c (diff) | |
[Rando] Fix Ghost Hut reward textbox bug (#1105)
| -rw-r--r-- | mm/2s2h/Rando/ActorBehavior/EnGb2.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mm/2s2h/Rando/ActorBehavior/EnGb2.cpp b/mm/2s2h/Rando/ActorBehavior/EnGb2.cpp index dc34dba37..190b4ce5f 100644 --- a/mm/2s2h/Rando/ActorBehavior/EnGb2.cpp +++ b/mm/2s2h/Rando/ActorBehavior/EnGb2.cpp @@ -31,6 +31,11 @@ void Rando::ActorBehavior::InitEnGb2Behavior() { player->talkActorDistance = refActor->xzDistToPlayer; player->exchangeItemAction = PLAYER_IA_MINUS1; Player_TalkWithPlayer(gPlayState, refActor); + /* + * This actor sets MSGMODE_TEXT_CLOSING state and expects GI to set it back to MSGMODE_TEXT_START. Because the + * GI is skipped, we manually start the textbox to prevent the player from being able to move during dialog. + */ + Message_StartTextbox(gPlayState, 0x14DE, refActor); }); COND_ID_HOOK(OnOpenText, 0x14D1, IS_RANDO, [](u16* textId, bool* loadFromMessageTable) { |
