summaryrefslogtreecommitdiff
path: root/src/item_use.c
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2020-09-05 10:25:10 -0400
committerGitHub <noreply@github.com>2020-09-05 10:25:10 -0400
commit16ecbc6446f4e8d308e71aa5e649c69acb8a6b3e (patch)
tree309ee7f0dd15192ad2ead860c8a6e2cabe5b9214 /src/item_use.c
parentbb98e346e537ffa71a529db71688975b9a850cfa (diff)
parent3e25d9e5a2e0346a53b1bfdf9e14f98e14cceb21 (diff)
Merge pull request #1177 from PokeCodec/MatchEmerald
Match All but 2 remaining naked functions
Diffstat (limited to 'src/item_use.c')
-rwxr-xr-xsrc/item_use.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/item_use.c b/src/item_use.c
index a9132ae5e..f9d1ff824 100755
--- a/src/item_use.c
+++ b/src/item_use.c
@@ -792,7 +792,7 @@ static void BootUpSoundTMHM(u8 taskId)
static void Task_ShowTMHMContainedMessage(u8 taskId)
{
- if (gMain.newKeys & (A_BUTTON | B_BUTTON))
+ if (JOY_NEW(A_BUTTON | B_BUTTON))
{
StringCopy(gStringVar1, gMoveNames[ItemIdToBattleMoveId(gSpecialVar_ItemId)]);
StringExpandPlaceholders(gStringVar4, gText_TMHMContainedVar1);
@@ -956,7 +956,7 @@ void ItemUseInBattle_PokeBall(u8 taskId)
static void Task_CloseStatIncreaseMessage(u8 taskId)
{
- if (gMain.newKeys & (A_BUTTON | B_BUTTON))
+ if (JOY_NEW(A_BUTTON | B_BUTTON))
{
if (!InBattlePyramid())
Task_FadeAndCloseBagMenu(taskId);