mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-27 08:22:17 +00:00
[Pathing] Smoother pathing z-correction (#2982)
This commit is contained in:
1 parent
889e57a5af
commit
e8f1aa253a
2 files changed
+1
-2
No files matched your search
@@ -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