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

Don't reset purchase selection on purchase error. #11818

Merged
merged 2 commits into from
Jul 26, 2023

Conversation

asvitkine
Copy link
Contributor

Change Summary & Additional Notes

For example, if you tried to buy too many of a unit. Previously, your full purchase selection will be cleared. Now, it will just bring you back to the purchase screen after showing error, keeping the previous selections.

Manually tested on 1941 Global Command Decision when trying to buy too many Army HQs.

Release Note

FIX|Your purchase selections will no longer be reset when trying to select an invalid purchase (e.g. too many units of a type). You'll be brought back to the purchase screen to correct the error.

For example, if you tried to buy too many of a unit. Previously, your full purchase selection will be cleared. Now, it will just bring you back to the purchase screen after showing error, keeping the previous selections.
@asvitkine asvitkine merged commit e2b8b6c into triplea-game:master Jul 26, 2023
asvitkine added a commit to asvitkine/triplea-1 that referenced this pull request Jun 26, 2024
The fix in triplea-game#11818 regressed with the changes for saving purchases in saved games. This restores it.

Also fixes the error message to not display a negative max limit.
asvitkine added a commit that referenced this pull request Jun 26, 2024
The fix in #11818 regressed with the changes for saving purchases in saved games. This restores it.

Also fixes the error message to not display a negative max limit.
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