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
This commit is contained in:
Michael Cook (mackal) 2018-03-08 16:11:48 -05:00
parent 49089f7537
commit ef487112df

View File

@ -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<glm::vec3>(m_Delta), normal);
m_Delta.x -= proj.x;