mirror of https://github.com/zeldaret/tmc.git
fixed COORD_TO_TILE
This commit is contained in:
parent
969241a1d0
commit
e3f0187dcd
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue