Updated NPCWrapper to use Vec3

This commit is contained in:
CPunch 2021-05-07 00:01:14 -05:00 committed by gsemaj
parent ca299e0a5b
commit a29de394ee

View File

@ -117,9 +117,9 @@ static int npc_moveto(lua_State *state) {
if (npc == NULL) if (npc == NULL)
return 0; return 0;
std::queue<WarpLocation> queue; std::queue<Vec3> queue;
WarpLocation from = { npc->x, npc->y, npc->z }; Vec3 from = { npc->x, npc->y, npc->z };
WarpLocation to = { X, Y, Z }; Vec3 to = { X, Y, Z };
// add a route to the queue; to be processed in Transport::stepNPCPathing() // add a route to the queue; to be processed in Transport::stepNPCPathing()
Transport::lerp(&queue, from, to, npc->speed); Transport::lerp(&queue, from, to, npc->speed);