summaryrefslogtreecommitdiff
path: root/include/entity.h
diff options
context:
space:
mode:
authortheo3 <arisstephenson2@gmail.com>2022-01-03 23:58:02 -0800
committertheo3 <arisstephenson2@gmail.com>2022-01-03 23:58:02 -0800
commit52db70bb9d63a801f76b2fe6b359bd402a2c5b2a (patch)
treea38de84a806c50f765d0370a2668a695038eb894 /include/entity.h
parentf26b2e286a7f462947b395da259e185fc8ecfa7f (diff)
naming work
Diffstat (limited to 'include/entity.h')
-rw-r--r--include/entity.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/entity.h b/include/entity.h
index e3fca5d4..898661f8 100644
--- a/include/entity.h
+++ b/include/entity.h
@@ -164,8 +164,8 @@ extern LinkedList gEntityLists[9];
enum {
ENT_DID_INIT = 0x1,
ENT_SCRIPTED = 0x2,
- ENT_ASLEEP = 0x10,
- ENT_20 = 0x20,
+ ENT_DELETED = 0x10,
+ ENT_PERSIST = 0x20,
ENT_COLLIDE = 0x80,
};
@@ -173,8 +173,8 @@ enum {
#define COLLISION_ON(entity) ((entity)->flags |= ENT_COLLIDE)
#define TILE(x, y) \
- (((((x) - gRoomControls.roomOriginX) >> 4) & 0x3F) | \
- ((((y) - gRoomControls.roomOriginY) >> 4) & 0x3F) << 6)
+ (((((x) - gRoomControls.origin_x) >> 4) & 0x3F) | \
+ ((((y) - gRoomControls.origin_y) >> 4) & 0x3F) << 6)
#define COORD_TO_TILE(entity) \
TILE((entity)->x.HALF.HI, (entity)->y.HALF.HI)