Skip to content

Commit

Permalink
Merge pull request #828 from FedericoMilesi/SteerMove
Browse files Browse the repository at this point in the history
[STEERING]: Update SteerMove
  • Loading branch information
FedericoMilesi authored Feb 10, 2024
2 parents 128c745 + 12ad7fd commit 68d3582
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions KAIN2/Game/RAZIEL/STEERING.C
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ void SteerTurn(struct _Instance* instance, int rc) // Matching - 100%
}
}

void SteerMove(struct _Instance* instance, int rc)
void SteerMove(struct _Instance* instance, int rc) // Matching - 100%
{
if ((rc != 0) || (Raziel.Bearing != 0))
{
Expand All @@ -514,7 +514,7 @@ void SteerMove(struct _Instance* instance, int rc)

if (Raziel.steeringVelocity >= 0x301)
{
Raziel.steeringVelocity = Raziel.steeringVelocity < 0 ? (((Raziel.steeringVelocity + 3) >> 2) + 0x70) : ((Raziel.steeringVelocity >> 2) + 0x7);
Raziel.steeringVelocity = Raziel.steeringVelocity / 4 + 0x70;
}
else
{
Expand Down

0 comments on commit 68d3582

Please sign in to comment.