mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-03-01 00:35:36 +08:00
修复AOI的BUG问题
This commit is contained in:
@@ -438,9 +438,8 @@ func (g *Game) AddSceneEntityNotify(player *model.Player, visionType proto.Visio
|
||||
}
|
||||
entityList := make([]*proto.SceneEntityInfo, 0)
|
||||
for _, entityId := range entityIdList[begin:end] {
|
||||
entityMap := scene.GetAllEntity()
|
||||
entity, exist := entityMap[entityId]
|
||||
if !exist {
|
||||
entity := scene.GetEntity(entityId)
|
||||
if entity == nil {
|
||||
logger.Error("get entity is nil, entityId: %v", entityId)
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user