summaryrefslogtreecommitdiff
path: root/src/berry.c
diff options
context:
space:
mode:
authorgarak <garakmon@gmail.com>2018-10-19 16:05:14 -0400
committergarak <garakmon@gmail.com>2018-10-19 16:05:14 -0400
commit38fcc46abb36df72512f4b532d1379dab1c13af6 (patch)
treedf44258d7b5a65d2a75a146c7c01b6c683b023f9 /src/berry.c
parent901f3ff55715ec6bdeda5c711e7e73b4c38ab55a (diff)
parent95d8815721321f08714b97c59a97de3a59f1e0c7 (diff)
Merge remote-tracking branch 'upstream/master' into pan-constants
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();