From ef487112df7baae7d332532a122c505ad721fc73 Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Thu, 8 Mar 2018 16:11:48 -0500 Subject: [PATCH] Add FixZ() to the spell push stuff This is done after the packet since we want the NPC to get pushed up still. The client will still interp the fall but server side we'll be on the ground instantly --- zone/mob_ai.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/zone/mob_ai.cpp b/zone/mob_ai.cpp index 0b77cb87e..055200d56 100644 --- a/zone/mob_ai.cpp +++ b/zone/mob_ai.cpp @@ -1009,6 +1009,7 @@ void Mob::AI_Process() { Teleport(new_pos); SendPositionUpdate(); pLastChange = Timer::GetCurrentTime(); + FixZ(); // so we teleport to the ground locally, we want the client to interpolate falling etc } else if (--ForcedMovement) { auto proj = glm::proj(static_cast(m_Delta), normal); m_Delta.x -= proj.x;