Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
celguar committed Mar 2, 2025
1 parent 9c34b3f commit 19cc111
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions playerbot/strategy/actions/MovementActions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2840,6 +2840,11 @@ WorldPosition JumpAction::CalculateJumpParameters(const WorldPosition& src, Unit
// reduce landing height by collision height
float fz_mod = fz - CONTACT_DISTANCE - jumper->GetCollisionHeight();
jumper->GetMap()->GetHitPosition(fx, fy, fz, fx, fy, fz_mod, -0.5f);
#ifdef MANGOSBOT_TWO
jumper->GetMap()->GetHitPosition(fx, fy, fz, fx, fy, fz_mod, jumper->GetPhaseMask(), -0.5f);
#else
jumper->GetMap()->GetHitPosition(fx, fy, fz, fx, fy, fz_mod, -0.5f);
#endif
}

WorldPosition destination = WorldPosition(src.getMapId(), fx, fy ,fz);
Expand Down

0 comments on commit 19cc111

Please sign in to comment.