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: Restore using founder client name as company manager name #10535

Merged
merged 1 commit into from
Mar 3, 2023

Conversation

ldpl
Copy link
Contributor

@ldpl ldpl commented Mar 3, 2023

Motivation / Problem

In previous versions when creating new company in multiplayer founder client name was used as a company manager name. In 13.0 (after #9725 I guess) that no longer works as the network command gets rejected because it's issued as INVALID_COMPANY.

Description

Looks like wrong company was passed to NetworkSendCommand in SendNet. Afaict in all other cases _current_company happens to be the same as passed company so CMD_RENAME_PRESIDENT was the only one affected.

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')

@2TallTyler 2TallTyler merged commit e3169c7 into OpenTTD:master Mar 3, 2023
@ldpl ldpl deleted the fix-manager-rename branch March 3, 2023 21:06
@glx22 glx22 added the backport requested This PR should be backport to current release (RC / stable) label Mar 27, 2023
rubidium42 pushed a commit to rubidium42/OpenTTD that referenced this pull request Mar 28, 2023
rubidium42 pushed a commit to rubidium42/OpenTTD that referenced this pull request Mar 28, 2023
@rubidium42 rubidium42 added backported This PR is backported to a current release (RC / stable) and removed backport requested This PR should be backport to current release (RC / stable) labels Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported This PR is backported to a current release (RC / stable)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants