xyzgrid: Return Dijkstra solution

When loading the Dijkstra solution, results are stored but recalculated anyway. This should be returned instead.
This commit is contained in:
Jake 2026-02-15 06:07:42 -08:00 committed by GitHub
parent 172d5162f0
commit 7c6bad3b42
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -624,6 +624,7 @@ class XYMap:
# we can re-use the stored data!
self.dist_matrix = dist_matrix
self.pathfinding_routes = pathfinding_routes
return
# build a matrix representing the map graph, with 0s as impassable areas