summaryrefslogtreecommitdiff
path: root/src/berry.c
diff options
context:
space:
mode:
authorgarak <garakmon@gmail.com>2018-10-17 12:30:45 -0400
committerGitHub <noreply@github.com>2018-10-17 12:30:45 -0400
commit7d88b9647f92d099177fc734f32e94fc472f2cbf (patch)
tree3b3d6ea2a092b2fd482d03145094689a05ec1b92 /src/berry.c
parentff97873c309e28beec91efe11393c093a08b19d3 (diff)
parentf67bbbdaaa905833f1c2a315624128aafef9a4cb (diff)
Merge branch 'master' into event-flags
Diffstat (limited to 'src/berry.c')
-rw-r--r--src/berry.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/berry.c b/src/berry.c
index ea216b61c..66cf91409 100644
--- a/src/berry.c
+++ b/src/berry.c
@@ -11,7 +11,7 @@
extern u8 EventObjectGetBerryTreeId(u8 eventObjectId);
extern void sub_8092EF0(u8 mapId, u8 mapNumber, u8 mapGroup);
extern void CB2_ChooseBerry(void);
-extern const u8* GetEventObjectScriptPointerForComparison(void);
+extern const u8* GetEventObjectScriptPointerPlayerFacing(void);
extern bool8 IsBerryTreeSparkling(u8, u8, u8);
extern u16 gSpecialVar_ItemId;
@@ -930,7 +930,7 @@ bool32 EventObjectInteractionWaterBerryTree(void)
bool8 IsPlayerFacingPlantedBerryTree(void)
{
- if (GetEventObjectScriptPointerForComparison() == BerryTreeScript
+ if (GetEventObjectScriptPointerPlayerFacing() == BerryTreeScript
&& GetStageByBerryTreeId(EventObjectGetBerryTreeId(gSelectedEventObject)) == 0)
return TRUE;
else
@@ -939,7 +939,7 @@ bool8 IsPlayerFacingPlantedBerryTree(void)
bool8 TryToWaterBerryTree(void)
{
- if (GetEventObjectScriptPointerForComparison() != BerryTreeScript)
+ if (GetEventObjectScriptPointerPlayerFacing() != BerryTreeScript)
return FALSE;
else
return EventObjectInteractionWaterBerryTree();