Skip to content

Commit

Permalink
Merge pull request #1548 from paulsapps/master
Browse files Browse the repository at this point in the history
fix flying slig speed run strat due to wrong calc in sub_436C60
  • Loading branch information
Paul committed Jun 25, 2022
2 parents 9040229 + edc5ce7 commit 23526d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/AliveLibAE/FlyingSlig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2748,7 +2748,7 @@ s16 FlyingSlig::sub_436C60(PSX_RECT* pRect, s16 arg_4)
const FP r_w = FP_FromInteger(std::max(pRect->w, pRect->x));

const FP r_y = FP_FromInteger(std::min(pRect->y, pRect->h));
const FP r_h = FP_FromInteger(std::max(pRect->h, pRect->w) + 150);
const FP r_h = FP_FromInteger(std::max(pRect->h, pRect->y) + 150);

s32 bLeftInRect = 0;
if (rLeft < r_x || rLeft > r_w || sControlledCharacter_5C1B8C->field_BC_ypos < r_y || sControlledCharacter_5C1B8C->field_BC_ypos > r_h)
Expand Down

0 comments on commit 23526d2

Please sign in to comment.