mirror of
https://github.com/wisplite/a-star-go.git
synced 2026-06-27 15:37:07 -05:00
fixed the chebyshev implementation and a live rendering bug
This commit is contained in:
@@ -516,7 +516,7 @@ func main() {
|
||||
// 2. Trace parent chain and draw a yellow polyline (cell centers) each frame.
|
||||
if lastEvaluatedNode != -1 {
|
||||
startIndex := int(startPos.Y)*width + int(startPos.X)
|
||||
parents := astar.GetParents()
|
||||
parents := astar.ParentsSnapshot()
|
||||
pathThickness := float32(16.0)
|
||||
if pathThickness < 1 {
|
||||
pathThickness = 1
|
||||
|
||||
Reference in New Issue
Block a user