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

Backport master into release/13 #10420

Merged
merged 29 commits into from
Jan 28, 2023
Merged

Conversation

michicc
Copy link
Member

@michicc michicc commented Jan 27, 2023

Description

Backport of all closed Pull Requests labeled as 'backport requested' into release/13.

Checklist for review

Some things are not automated, and forgotten often. This list is a reminder for the reviewers.

  • The bug fix is important enough to be backported? (label: 'backport requested')
  • This PR touches english.txt or translations? Check the guidelines
  • This PR affects the save game format? (label 'savegame upgrade')
  • This PR affects the GS/AI API? (label 'needs review: Script API')
    • ai_changelog.hpp, gs_changelog.hpp need updating.
    • The compatibility wrappers (compat_*.nut) need updating.
  • This PR affects the NewGRF API? (label 'needs review: NewGRF')

@michicc
Copy link
Member Author

michicc commented Jan 27, 2023

Now would be the time to check if anything is missing or should not be on this list.

@rubidium42
Copy link
Contributor

I haven't seen anything obviously wrong with the changes in this PR. But there might be some PRs to consider:
Maybe #10365, i.e. don't show 'max speed' as speed limit for brigdes but that has changed/added a few strings so I'm not sure translations are ready yet. On the other hand those strings usually do not actually need a translation.
Maybe #10360?
#10364 as that's just an improvement to the English string and might be blocking other languages improvements to that string to be taken by the translation-update-copy-script.

@michicc michicc added the preview This PR is receiving preview builds label Jan 28, 2023
@DorpsGek DorpsGek temporarily deployed to preview-pr-10420 January 28, 2023 10:50 Inactive
@michicc
Copy link
Member Author

michicc commented Jan 28, 2023

Agree on #10365 and #10364 as it makes life easier later with the string changes. And for #10360, why not? Tagged them and will re-run the backport script later.

There's also #10355 that is tagged but not approved/merged.

glx22 and others added 25 commits January 28, 2023 14:58
… colours

Or: do not pass unchecked size from BMP file into memory allocation
When disabling/enabling elrail, there is an assumption that `engclass` of 2
means the engine will run on elrail. While this holds for default engines,
NewGRFs can do other things.

To resolve this we store the intended railtype so that toggling elrail will
restore to the correct type.
… AI start. (OpenTTD#10332)

This situation occurs when loading a savegame in single-player which only
has AI companies.
…TD#10336)

This previously happened when the window was resized by itself which was fixed by OpenTTD#10196. Explicitly set the count instead.
This ensures that definition-order of engines within the NewGRF does not matter.
... during the first word after a new run has been started.
…tric distribution for diamonds in subtropic (OpenTTD#10364)

* Fix OpenTTD#10363: CargoDist setting helptext shouldn't suggest symmetric distribution for diamonds in subtropic

* Fix: Always capitalize the first word of a sentence, even if a quoted setting name
… to hit assertion

Upon closing the EndGameWindow, triggered from UnInitWindowSystem, the
HighScoreWindow would be opened and _z_windows would not be empty.
For bridges, a max speed of 0xFFFF (i.e. no effective limit)
 is no longer displayed as a limit in the UI.

A max speed of 0 is also considered unlimited, for similarity to the
 roadtype and railtype interface.
…n those displayed in GUI (OpenTTD#10227)

* Change: Store "all time" and "since minimum age" last year profits on groups

* Fix: Update last year profit for groups when copying vehicle statistics on autoreplace

* Codechange: Refactor profit last year

* Change: Rename some group related items for clarity

* Change: Reorder the fields in GroupStatistics

That way less memory gets wasted.
@DorpsGek DorpsGek temporarily deployed to preview-pr-10420 January 28, 2023 14:00 Inactive
@michicc michicc merged commit aa4cd10 into OpenTTD:release/13 Jan 28, 2023
@michicc michicc deleted the release-backport branch January 28, 2023 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
preview This PR is receiving preview builds
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

10 participants