Skip to content

ParallelProductionQueue: pause production, when all Production traits are paused#21296

Merged
abcdefg30 merged 1 commit into
OpenRA:bleedfrom
michaeldgg2:ParallelProductionQueue-pausing
Feb 25, 2024
Merged

ParallelProductionQueue: pause production, when all Production traits are paused#21296
abcdefg30 merged 1 commit into
OpenRA:bleedfrom
michaeldgg2:ParallelProductionQueue-pausing

Conversation

@michaeldgg2
Copy link
Copy Markdown
Contributor

As per discussion on Discord, this PR makes ParallelProductionQueue support paused Production traits (i.e. the production is actually paused).

abcdefg30
abcdefg30 previously approved these changes Jan 12, 2024
Copy link
Copy Markdown
Member

@abcdefg30 abcdefg30 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Untested but lgtm.

Copy link
Copy Markdown
Contributor

@anvilvapre anvilvapre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code from the Classic production queue is 'faster'.

Makes you wonder why this wasn't used before? Perhaps only used for classic initially?

@michaeldgg2
Copy link
Copy Markdown
Contributor Author

michaeldgg2 commented Jan 29, 2024

I believe this was bug made by mistake, when ParallelProductionQueue was first created.

I added a test case for Hand of Nod and Barracks in ts.

@abcdefg30 abcdefg30 force-pushed the ParallelProductionQueue-pausing branch from c253dfe to 077aa9a Compare February 25, 2024 10:45
Copy link
Copy Markdown
Member

@abcdefg30 abcdefg30 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm, removed the testcase.

@abcdefg30
Copy link
Copy Markdown
Member

Changelog

@abcdefg30 abcdefg30 merged commit 63247d2 into OpenRA:bleed Feb 25, 2024
@michaeldgg2 michaeldgg2 deleted the ParallelProductionQueue-pausing branch February 25, 2024 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants