summaryrefslogtreecommitdiff
path: root/include/entity.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/entity.h')
-rw-r--r--include/entity.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/entity.h b/include/entity.h
index 30bc9a75..ddeef86c 100644
--- a/include/entity.h
+++ b/include/entity.h
@@ -526,6 +526,8 @@ extern u8 gManagerCount;
/** @name Tile Macros */ /// @{
#define TILE(x, y) (((((x)-gRoomControls.origin_x) >> 4) & 0x3F) | ((((y)-gRoomControls.origin_y) >> 4) & 0x3F) << 6)
#define TILE_POS(x, y) (x + (y << 6))
+#define TILE_POS_X_COMPONENT 0x3f
+#define TILE_POS_Y_COMPONENT 0xfc0
#define COORD_TO_TILE(entity) TILE((entity)->x.HALF.HI, (entity)->y.HALF.HI)
#define COORD_TO_TILE_OFFSET(entity, xOff, yOff) TILE((entity)->x.HALF.HI - (xOff), (entity)->y.HALF.HI - (yOff))
/// @}