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:
parent
c27e292929
commit
2f07874a5f
4 changed files with 58 additions and 61 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue