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

Silence initial client info #3218

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

ChillerDragon
Copy link
Contributor

When a new player joins it is being sent all the client info of the currently connected tees. This is marked as non silent which is misleading because the client does not actually print these as join messages. The reason why the client does not print it is because it does not have its m_LocalClientID set yet.

Setting it explicitly to silent makes it more obvious that this is not printing a chat message when reading the server code.

This change will not change anything that can be witnessed by end users.

This also ensures that when the client implementation changes it does not start printing unexpected "joined the game" messages in chat.

ChillerDragon and others added 7 commits August 4, 2023 16:26
…_space_in_systemc

Remove trailing space in system.c teeworlds#3220
…unused

Mark unused NETMSG_SNAPSMALL for 0.8 removal teeworlds#3210
When a new player joins it is being sent all the client info of the
currently connected tees. This is marked as non silent which is
misleading because the client does not actually print these as join
messages. The reason why the client does not print it is because it does
not have its m_LocalClientID set yet.

Setting it explicitly to silent makes it more obvious that this is not
printing a chat message when reading the server code.

This change will not change anything that can be witnessed by end users.

This also ensures that when the client implementation changes it does
not start printing unexpected "joined the game" messages in chat.
github-merge-queue bot pushed a commit to teeworlds-community/teeworlds that referenced this pull request Feb 23, 2024
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.

None yet

3 participants