Closed MuxyDuGoulp closed 1 month ago
Thanks for this. Please use the PR template that was prefilled in the form, it's there for a reason. 😉
To link the issue, you can write Fixes #12411
.
I think the content of the new function should become part of NetworkOnGameStart
.
where can i find the PR template ?
where can i find the PR template ?
https://github.com/OpenTTD/OpenTTD/blob/master/.github/PULL_REQUEST_TEMPLATE.md?plain=1
Furthermore please rebase instead of merge master into this branch. See https://github.com/OpenTTD/OpenTTD/blob/master/CONTRIBUTING.md for more information. As long as there are no merge conflicts, you do not need to rebase/update your branch for every change that reached master.
Initial comment updated according to template.
Great, thank you.
Now you will have to squash all your Merge branch 'master' into master
commits using an interactive rebase, or our automated checks won't allow this PR to be merged. 🙂
not sure if all is fine :[
Since this is such a simple code change, you might want to start over with Git. 😉
First, you will need to use the command line interface for GitHub — using the web interface is not powerful enough, and neither was GitHub Desktop last I tried it. If you are not doing this already, here are the instructions to set it up for OpenTTD.
You will need to reset your master branch and then create a branch for this feature.
git fetch upstream
git reset --hard upstream/master
git checkout -b welcome-packet
made some cleaning made a fork in my GitHub account clone my OpenTTD Repo on my local PC (windows) using Tortoise Git create a branch and swtich to it made the changes launch a full build commit and push from my GitHub account, detected the changes, create a new PR when the PR will be accepted and merged, what should i do with the branch (delete ?) ?
Motivation / Problem
ADMIN_PACKET_SERVER_WELCOME is sent too early when a newgame is issued with an external bot already connected through AdminPort.
See #12411.
Description
Move the sending of the packet to a better appropriate place when the game creation is over :
NetworkOnGameStart
Closes #12411.
Limitations
Checklist for review
Some things are not automated, and forgotten often. This list is a reminder for the reviewers.