Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve robot pool encapsulation #1340

Merged
merged 5 commits into from
May 5, 2023
Merged

Conversation

DanRStevens
Copy link
Member

Partially addresses #1335

We can't really check while loading saved games, since robots are loaded before structures, as they need to be for the ID-to-robot mapping to work. That means during load, robots will be placed, before any supporting structures have been created.

To work around the load situation, we only perform the check when the max control is greater than 0. Basically, we expect a command center to be up, and to stay up by the time robots are available.
@DanRStevens DanRStevens requested a review from ldicker83 May 5, 2023 10:15
@DanRStevens DanRStevens merged commit 72c91ea into main May 5, 2023
@DanRStevens DanRStevens deleted the improveRobotPoolEncapsulation branch May 5, 2023 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant