mirror of
https://github.com/pret/pmd-red.git
synced 2026-08-26 10:44:40 -05:00
Make pos->pixelPos conversion more readable
This commit is contained in:
@@ -19,6 +19,9 @@ typedef struct PixelPos
|
||||
/* 0x4 */ s32 y;
|
||||
} PixelPos;
|
||||
|
||||
#define X_POS_TO_PIXELPOS(x)((((x) * 24) + 12) << 8)
|
||||
#define Y_POS_TO_PIXELPOS(y)((((y) * 24) + 16) << 8)
|
||||
|
||||
/**
|
||||
* Currently only used in script data, for entities and GroundLink data.
|
||||
* DungeonPos expressed in terms of *graphics* tiles, 8 pixels per unit.
|
||||
|
||||
Reference in New Issue
Block a user