mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-25 05:25:14 +00:00
Fix crash in cur_obj_detect_steep_floor
This commit is contained in:
parent
5a98b00713
commit
a0b3869711
1 changed files with 1 additions and 1 deletions
|
@ -2080,7 +2080,7 @@ s32 cur_obj_detect_steep_floor(s16 steepAngleDegrees) {
|
|||
if (intendedFloorHeight < gLevelValues.floorLowerLimitMisc) {
|
||||
o->oWallAngle = o->oMoveAngleYaw + 0x8000;
|
||||
return 2;
|
||||
} else if (intendedFloor->normal.y < steepNormalY && deltaFloorHeight > 0
|
||||
} else if (intendedFloor && intendedFloor->normal.y < steepNormalY && deltaFloorHeight > 0
|
||||
&& intendedFloorHeight > o->oPosY) {
|
||||
o->oWallAngle = atan2s(intendedFloor->normal.z, intendedFloor->normal.x);
|
||||
return 1;
|
||||
|
|
Loading…
Reference in a new issue