mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
[Pathing] Smoother pathing z-correction (#2982)
This commit is contained in:
@@ -236,7 +236,7 @@ public:
|
||||
|
||||
if (RuleB(Map, FixZWhenPathing)) {
|
||||
m_distance_moved_since_correction += distance_moved;
|
||||
if (m_distance_moved_since_correction > RuleR(Map, DistanceCanTravelBeforeAdjustment)) {
|
||||
if (m_distance_moved_since_correction > (mob->IsEngaged() ? 1 : 10)) {
|
||||
m_distance_moved_since_correction = 0.0;
|
||||
mob->FixZ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user