diff options
| author | fig02 <fig02srl@gmail.com> | 2022-05-21 14:23:43 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-21 14:23:43 -0400 |
| commit | 2e6279bc8e528833704bc6b77635f0eeae6bbe44 (patch) | |
| tree | d407e4462e1a07b22d11fd84c8013ab182153aaa /src/code/z_elf_message.c | |
| parent | 154f44b6da6e0b9be69886ec8d8a5a8ea2f4791e (diff) | |
PlayState Rename (#1231)
* global context -> play
* fix PlayState* PlayState
Diffstat (limited to 'src/code/z_elf_message.c')
| -rw-r--r-- | src/code/z_elf_message.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/code/z_elf_message.c b/src/code/z_elf_message.c index 62c6ddb2f..0d119e1ce 100644 --- a/src/code/z_elf_message.c +++ b/src/code/z_elf_message.c @@ -148,12 +148,12 @@ u16 ElfMessage_GetTextFromMsgs(ElfMessage* msg) { } } -u16 ElfMessage_GetSariaText(GlobalContext* globalCtx) { - Player* player = GET_PLAYER(globalCtx); +u16 ElfMessage_GetSariaText(PlayState* play) { + Player* player = GET_PLAYER(play); ElfMessage* msgs; if (!LINK_IS_ADULT) { - if (Actor_FindNearby(globalCtx, &player->actor, ACTOR_EN_SA, 4, 800.0f) == NULL) { + if (Actor_FindNearby(play, &player->actor, ACTOR_EN_SA, 4, 800.0f) == NULL) { msgs = sChildSariaMsgs; } else { return 0x0160; // Special text about Saria preferring to talk to you face-to-face @@ -165,10 +165,10 @@ u16 ElfMessage_GetSariaText(GlobalContext* globalCtx) { return ElfMessage_GetTextFromMsgs(msgs); } -u16 ElfMessage_GetCUpText(GlobalContext* globalCtx) { - if (globalCtx->cUpElfMsgs == NULL) { +u16 ElfMessage_GetCUpText(PlayState* play) { + if (play->cUpElfMsgs == NULL) { return 0; } else { - return ElfMessage_GetTextFromMsgs(globalCtx->cUpElfMsgs); + return ElfMessage_GetTextFromMsgs(play->cUpElfMsgs); } } |
