Never spawn agents on a road island disconnected from the main network #6
Loading…
Reference in a new issue
No description provided.
Delete branch "danny/no-spawn-on-disconnected-roads"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
road_tiles was every live road tile with no regard for connectivity, so a
player-built stub with no link back to the network could get an agent
spawned on it. That agent can never be routed anywhere real and sits there
forever, since reassign_idle_agents silently skips a failed route rather
than erroring. refresh_road_tiles now keeps only the largest island from
RoadGraph::islands() (already-tested BFS, no new graph work needed), and
spawn_agent_now gets an explicit membership check for the same reason.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.