mirror of
https://github.com/zeldaret/tmc
synced 2026-07-08 14:36:41 -04:00
fixed COORD_TO_TILE
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user