From 1ea5a779506125969fcedf269cd23a0f5fe218a0 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 1 Apr 2023 19:46:29 +0800 Subject: [PATCH] 1 --- server/gameserver/mapinstance.cc | 2 +- server/gameserver/mapinstance.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/server/gameserver/mapinstance.cc b/server/gameserver/mapinstance.cc index e90f5e88..47923f23 100644 --- a/server/gameserver/mapinstance.cc +++ b/server/gameserver/mapinstance.cc @@ -520,7 +520,6 @@ dtPoly* MapInstance::GetPoly(glm::vec3 pos, int& poly_idx) void MapInstance::MarkMapAreaPolys() { - return; const dtMeshTile* tile = navmesh_->getTileAt(0, 0, 0); if (!tile) { abort(); @@ -574,6 +573,7 @@ void MapInstance::MarkMapAreaPolys() } break; } + } else if ((poly->flags & SAMPLE_POLYFLAGS_GLASS) == SAMPLE_POLYFLAGS_GLASS) { } poly_ext_datas_.push_back(ext_flag); } diff --git a/server/gameserver/mapinstance.h b/server/gameserver/mapinstance.h index 21a09fbf..55162a8f 100644 --- a/server/gameserver/mapinstance.h +++ b/server/gameserver/mapinstance.h @@ -71,6 +71,7 @@ class MapInstance : public std::enable_shared_from_this dtPolyRef polys_[MAX_POLYS]; std::vector poly_ext_datas_; + std::vector grass_pos_hash_; std::list houses_;