File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -272,8 +272,8 @@ int JumpjetRushHelpers::JumpjetLocomotionPredictHeight(JumpjetLocomotionClass* p
272
272
// If is moving
273
273
if (pThis->CurrentSpeed > 0.0 )
274
274
{
275
- const auto checkLength = pThis->LocomotionFacing .IsRotating () ? Unsorted::LeptonsPerCell
276
- : (pFoot-> Destination ? Math::min ((Unsorted::LeptonsPerCell * 5 ), pFoot->DistanceFrom (pFoot->Destination )) : Unsorted::LeptonsPerCell );
275
+ const auto checkLength = ( pThis->LocomotionFacing .IsRotating () || !pFoot-> Destination ) ? Unsorted::LeptonsPerCell
276
+ : Math::min ((Unsorted::LeptonsPerCell * 5 ), pFoot->DistanceFrom (pFoot->Destination ));
277
277
const auto angle = -pThis->LocomotionFacing .Current ().GetRadian <65536 >();
278
278
const auto checkCoord = Point2D { static_cast <int >(checkLength * cos (angle) + 0.5 ), static_cast <int >(checkLength * sin (angle) + 0.5 ) };
279
279
const auto largeStep = Math::max (abs (checkCoord.X ), abs (checkCoord.Y ));
You can’t perform that action at this time.
0 commit comments