summaryrefslogtreecommitdiff
path: root/src/union_room.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2021-10-09 12:12:18 -0400
committerGriffinR <griffin.g.richards@gmail.com>2021-10-09 13:19:27 -0400
commit862febe03a354218d3c8bd14d9c7d1a49e8981b8 (patch)
tree583c9759092167966229324c1cf72868cdd5f0e7 /src/union_room.c
parent28de627913f04e059f995169299e41ce4c2544f0 (diff)
Add MAP_OFFSET
Diffstat (limited to 'src/union_room.c')
-rw-r--r--src/union_room.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/union_room.c b/src/union_room.c
index 03f7fc02b..fb1604879 100644
--- a/src/union_room.c
+++ b/src/union_room.c
@@ -11,6 +11,7 @@
#include "easy_chat.h"
#include "event_data.h"
#include "event_object_lock.h"
+#include "fieldmap.h"
#include "field_control_avatar.h"
#include "field_player_avatar.h"
#include "field_screen_effect.h"
@@ -3989,10 +3990,10 @@ static bool32 IsPlayerFacingTradingBoard(void)
s16 x, y;
GetXYCoordsOneStepInFrontOfPlayer(&x, &y);
- if (x != 2 + 7)
+ if (x != 2 + MAP_OFFSET)
return FALSE;
- if (y != 1 + 7)
+ if (y != 1 + MAP_OFFSET)
return FALSE;
if (gPlayerAvatar.tileTransitionState == T_TILE_CENTER || gPlayerAvatar.tileTransitionState == T_NOT_MOVING)