修复 12 1008地图,上面2个坐骑始终未显示
This commit is contained in:
parent
0bbf83d6a3
commit
21e9cf1b43
@ -1205,6 +1205,19 @@ void Human::FindLocation()
|
|||||||
|
|
||||||
void Human::RefreshView()
|
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
|
TraverseAllLayerHumanList
|
||||||
(
|
(
|
||||||
[this] (Human* hum, bool& stop)
|
[this] (Human* hum, bool& stop)
|
||||||
@ -1214,6 +1227,7 @@ void Human::RefreshView()
|
|||||||
AddToNewObjects(hum);
|
AddToNewObjects(hum);
|
||||||
AddToPartObjects(hum);
|
AddToPartObjects(hum);
|
||||||
});
|
});
|
||||||
|
#endif
|
||||||
TraverseAllLayerEntityList
|
TraverseAllLayerEntityList
|
||||||
(
|
(
|
||||||
[this] (Entity* entity, bool& stop)
|
[this] (Entity* entity, bool& stop)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user