Never spawn agents on a road island disconnected from the main network #6

Open
Danny wants to merge 1 commit from danny/no-spawn-on-disconnected-roads into master AGit
Collaborator

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.

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.
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.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin +refs/pull/6/head:danny/no-spawn-on-disconnected-roads
git switch danny/no-spawn-on-disconnected-roads

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.

git switch master
git merge --no-ff danny/no-spawn-on-disconnected-roads
git switch danny/no-spawn-on-disconnected-roads
git rebase master
git switch master
git merge --ff-only danny/no-spawn-on-disconnected-roads
git switch danny/no-spawn-on-disconnected-roads
git rebase master
git switch master
git merge --no-ff danny/no-spawn-on-disconnected-roads
git switch master
git merge --squash danny/no-spawn-on-disconnected-roads
git switch master
git merge --ff-only danny/no-spawn-on-disconnected-roads
git switch master
git merge danny/no-spawn-on-disconnected-roads
git push origin master
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Sara/citybuilder!6
No description provided.