From 718a2c220513d392120edecd8a070dc8f2be4760 Mon Sep 17 00:00:00 2001 From: Akkadius Date: Fri, 18 Aug 2017 20:23:16 -0500 Subject: [PATCH] FixZ on NPC initial spawn to keep NPC's from hopping --- zone/entity.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zone/entity.cpp b/zone/entity.cpp index 344e79a04..03b4ccf5a 100644 --- a/zone/entity.cpp +++ b/zone/entity.cpp @@ -648,6 +648,8 @@ void EntityList::AddNPC(NPC *npc, bool SendSpawnPacket, bool dontqueue) parse->EventNPC(EVENT_SPAWN, npc, nullptr, "", 0); + npc->FixZ(); + uint16 emoteid = npc->GetEmoteID(); if (emoteid != 0) npc->DoNPCEmote(ONSPAWN, emoteid);