mirror of
https://github.com/zeldaret/tmc
synced 2026-08-05 17:44:13 -04:00
embrace direction macros
This commit is contained in:
@@ -175,6 +175,8 @@ extern void PositionRelative(Entity*, Entity*, s32, s32);
|
||||
#define DirectionIsVertical(expr) ((expr) & 0x10)
|
||||
#define DirectionTurnHorizontal(expr) (DirectionRoundUp(expr) ^ 0x08)
|
||||
#define DirectionTurnVertical(expr) (DirectionRoundUp(expr) ^ 0x10)
|
||||
#define DirectionToAnimationState(expr) (DirectionRoundUp(expr) >> 3)
|
||||
#define DirectionFromAnimationState(expr) (expr << 3)
|
||||
|
||||
extern Entity gUnk_03003DA0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user