From e73f4389e13b236990f0ac6d80b343bc4e4e8610 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 15 May 2023 11:33:05 +0800 Subject: [PATCH] 1 --- server/gameserver/mapinstance.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/gameserver/mapinstance.cc b/server/gameserver/mapinstance.cc index 3dac2f6c..d23dd777 100644 --- a/server/gameserver/mapinstance.cc +++ b/server/gameserver/mapinstance.cc @@ -1135,8 +1135,8 @@ void MapInstance::AdjustOnLandPoint(glm::vec3& point) return; } - glm::vec3 orig; - glm::vec3 dir; + glm::vec3 orig = glm::vec3(point.x, 100.0f, point.z);; + glm::vec3 dir = glm::vec3(0.0f, 1.0f, 0.0f); const dtPoly* nearest_poly = nullptr; float nearest_distance = 0.0f;