1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-07-03 06:24:30 +00:00

Remove BINANG_SUB (#1297)

This commit is contained in:
Dragorn421 2022-07-12 18:17:07 +02:00 committed by GitHub
parent c27e292929
commit 2f07874a5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 58 additions and 61 deletions

View file

@ -772,7 +772,7 @@ void EnRd_TurnTowardsPlayer(EnRd* this, PlayState* play) {
headAngleTemp -= this->headYRotation;
headAngle = CLAMP(headAngleTemp, -500, 500);
if (BINANG_SUB(this->actor.yawTowardsPlayer, this->actor.shape.rot.y) >= 0) {
if ((s16)(this->actor.yawTowardsPlayer - this->actor.shape.rot.y) >= 0) {
this->upperBodyYRotation += ABS(upperBodyAngle);
this->headYRotation += ABS(headAngle);
} else {