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

Fix #21434: Number of guests overflows in objective text #21518

Merged

Conversation

jan-kelemen
Copy link
Contributor

Format number of guests in objective as Comma32 instead of Comma16.

Fixes [#21434]

@Gymnasiast Gymnasiast added the testing required PR needs to be tested before it is merged. label Mar 3, 2024
@Gymnasiast Gymnasiast linked an issue Mar 3, 2024 that may be closed by this pull request
@jan-kelemen jan-kelemen force-pushed the fix_guest_objective_display_overflow branch 2 times, most recently from 2b2c91c to a56ae7d Compare March 11, 2024 18:38
@jan-kelemen
Copy link
Contributor Author

Resolved review comment, rebased to develop to resolve conflicts.

Copy link
Contributor

@duncanspumpkin duncanspumpkin left a comment

Choose a reason for hiding this comment

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

Code looks fine haven't tested it though

Copy link
Member

@Gymnasiast Gymnasiast left a comment

Choose a reason for hiding this comment

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

Tested it, works correctly. Could you add a changelog entry?

@Gymnasiast Gymnasiast added the changelog This issue/PR deserves a changelog entry. label Mar 14, 2024
@jan-kelemen jan-kelemen force-pushed the fix_guest_objective_display_overflow branch from a56ae7d to 204e23a Compare March 14, 2024 18:18
@jan-kelemen
Copy link
Contributor Author

Changelog entry added.

@jan-kelemen jan-kelemen force-pushed the fix_guest_objective_display_overflow branch from 204e23a to ce17952 Compare March 14, 2024 18:20
@jan-kelemen jan-kelemen force-pushed the fix_guest_objective_display_overflow branch from ce17952 to e47400b Compare March 14, 2024 18:34
@Gymnasiast Gymnasiast merged commit 9bb6786 into OpenRCT2:develop Mar 14, 2024
23 checks passed
@Gymnasiast
Copy link
Member

@jan-kelemen Could you also create a PR against the Localisation repository that replaces the formatting token in all other languages?

@Gymnasiast Gymnasiast added this to the v.0.4.10 milestone Mar 14, 2024
@jan-kelemen jan-kelemen deleted the fix_guest_objective_display_overflow branch March 14, 2024 19:43
@jan-kelemen jan-kelemen restored the fix_guest_objective_display_overflow branch March 14, 2024 19:44
@jan-kelemen
Copy link
Contributor Author

@Gymnasiast yup, done OpenRCT2/Localisation#2787

Gymnasiast added a commit to Gymnasiast/OpenRCT2 that referenced this pull request Mar 22, 2024
OpenRCT2#21518 made some changes to objective formatting, but forgot to update the scenario selector. This PR addresses this, and also moves the code into a function of its own to reduce code duplication and prevent this problem in the future.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog This issue/PR deserves a changelog entry. testing required PR needs to be tested before it is merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Guest Objective Overflows when reaching past 32,750
3 participants