Skip to content

Commit

Permalink
fix flying slig speed run strat due to wrong calc in sub_436C60
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSapps committed Jun 25, 2022
1 parent 9040229 commit edc5ce7
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 edc5ce7

Please sign in to comment.