fixed COORD_TO_TILE

This commit is contained in:
theo3 2020-06-19 22:55:03 -07:00
parent 969241a1d0
commit e3f0187dcd
1 changed files with 1 additions and 1 deletions

View File

@ -144,6 +144,6 @@ typedef struct Entity {
} Entity;
#define COORD_TO_TILE(entity) ((((entity->x.HALF.HI - gRoomControls.roomOriginX) >> 4) & 0x3fU) | (((entity->y.HALF.HI - gRoomControls.roomOriginY) >> 4) & 0x3fU) * 64)
#define COORD_TO_TILE(entity) ((((entity->x.HALF.HI - gRoomControls.roomOriginX) >> 4) & 0x3fU) | (((entity->y.HALF.HI - gRoomControls.roomOriginY) >> 4) & 0x3fU) << 6)
#endif