Apply route node limit before waiting for geometry (#114)

Co-Authored-By: Codex <noreply@openai.com>
This commit is contained in:
2026-11-02 21:00:22 +03:00
parent 29b047abaf
commit efb2f20e58
+1 -1
View File
@@ -418,11 +418,11 @@ impl Route {
} }
// Let pending footprint queries settle before opening a broad, less useful frontier. // Let pending footprint queries settle before opening a broad, less useful frontier.
// Otherwise three trucks can saturate the shared world budget without ever moving. // Otherwise three trucks can saturate the shared world budget without ever moving.
if !self.parked.is_empty() { break; }
if self.expanded >= MAX_NODES { if self.expanded >= MAX_NODES {
self.settle(now); self.settle(now);
return; return;
} }
if !self.parked.is_empty() { break; }
} }
if self.expanded > before { if self.expanded > before {
self.stuck_since = None; self.stuck_since = None;