From a29de394eea1031582b08c2a4ead5427a6548e24 Mon Sep 17 00:00:00 2001 From: CPunch Date: Fri, 7 May 2021 00:01:14 -0500 Subject: [PATCH] Updated NPCWrapper to use Vec3 --- src/lua/NPCWrapper.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lua/NPCWrapper.cpp b/src/lua/NPCWrapper.cpp index 7120c09..0208597 100644 --- a/src/lua/NPCWrapper.cpp +++ b/src/lua/NPCWrapper.cpp @@ -117,9 +117,9 @@ static int npc_moveto(lua_State *state) { if (npc == NULL) return 0; - std::queue queue; - WarpLocation from = { npc->x, npc->y, npc->z }; - WarpLocation to = { X, Y, Z }; + std::queue queue; + Vec3 from = { npc->x, npc->y, npc->z }; + Vec3 to = { X, Y, Z }; // add a route to the queue; to be processed in Transport::stepNPCPathing() Transport::lerp(&queue, from, to, npc->speed);