From 21e9cf1b43ec63431626afcbcdc09413bdbeee5e Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 4 Jun 2021 18:01:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=2012=20=20=20=20=20=20=20=20?= =?UTF-8?q?1008=E5=9C=B0=E5=9B=BE=EF=BC=8C=E4=B8=8A=E9=9D=A22=E4=B8=AA?= =?UTF-8?q?=E5=9D=90=E9=AA=91=E5=A7=8B=E7=BB=88=E6=9C=AA=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/gameserver/human.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index 5d55d60..7af3c70 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -1205,6 +1205,19 @@ void Human::FindLocation() void Human::RefreshView() { + #if 1 + room->grid_service->TraverseCreatures + ( + room->GetRoomIdx(), + GetGridList(), + [this] (Creature* c, bool& stop) + { + c->AddToNewObjects(this); + c->AddToPartObjects(this); + AddToNewObjects(c); + AddToPartObjects(c); + }); + #else TraverseAllLayerHumanList ( [this] (Human* hum, bool& stop) @@ -1214,6 +1227,7 @@ void Human::RefreshView() AddToNewObjects(hum); AddToPartObjects(hum); }); + #endif TraverseAllLayerEntityList ( [this] (Entity* entity, bool& stop)