Skip to content

Commit

Permalink
rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
gamezter committed Nov 28, 2024
1 parent d4d8a78 commit 3a0079e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/st/no0/e_plate_lord.c
Original file line number Diff line number Diff line change
Expand Up @@ -1352,7 +1352,7 @@ void func_us_801D4E94(s32 arg0) {
s32 i;
s32 xOffset;
s32 yOffset;
s32 length;
s32 magnitudeSqr;

s32 posX = g_CurrentEntity->posX.val >> 8;
s32 posY = g_CurrentEntity->posY.val >> 8;
Expand All @@ -1366,8 +1366,8 @@ void func_us_801D4E94(s32 arg0) {
yOffset -= posY;
yOffset += arg0;
angle = ratan2(-xOffset, yOffset);
length = (xOffset * xOffset) + (yOffset * yOffset);
if (length > FIX(64)) {
magnitudeSqr = (xOffset * xOffset) + (yOffset * yOffset);
if (magnitudeSqr > FIX(64)) {
xOffset = -((rsin(angle) * 8) >> 4);
yOffset = (rcos(angle) * 8) >> 4;
}
Expand Down

0 comments on commit 3a0079e

Please sign in to comment.