Skip to content

Use a macro for the common approach angle idiom#88

Open
AltimorTASDK wants to merge 1 commit inton64decomp:masterfrom
AltimorTASDK:approach-angle-macro
Open

Use a macro for the common approach angle idiom#88
AltimorTASDK wants to merge 1 commit inton64decomp:masterfrom
AltimorTASDK:approach-angle-macro

Conversation

@AltimorTASDK
Copy link

@AltimorTASDK AltimorTASDK commented Oct 13, 2023

m->faceAngle[1] = m->intendedYaw - approach_s32((s16)(m->intendedYaw - m->faceAngle[1]), 0, 0x800, 0x800);
becomes
m->faceAngle[1] = approach_angle(m->faceAngle[1], m->intendedYaw, 0x800);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant