mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-04 15:32:26 +08:00
怪物死亡和世界宝箱随机掉落
This commit is contained in:
@@ -71,6 +71,11 @@ func (w *WorldStatic) SetTerrain(x int16, y int16, z int16) {
|
||||
}
|
||||
|
||||
func (w *WorldStatic) Pathfinding(startPos alg.MeshVector, endPos alg.MeshVector) (bool, []alg.MeshVector) {
|
||||
defer func() {
|
||||
if err := recover(); err != nil {
|
||||
logger.Error("pathfinding error, panic, startPos: %v, endPos: %v", startPos, endPos)
|
||||
}
|
||||
}()
|
||||
bfs := alg.NewBFS()
|
||||
bfs.InitMap(
|
||||
w.terrain,
|
||||
|
||||
Reference in New Issue
Block a user