FAForever / server

The servercode for the Forged Alliance Forever lobby
http://www.faforever.com
GNU General Public License v3.0
67 stars 62 forks source link

Remove one of the player info's sent on login #901

Open Askaholic opened 2 years ago

Askaholic commented 2 years ago

When a player logs in they get their own player_info sent to them 3 times.

  1. In the welcome message
  2. In the player list
  3. In the broadcasted player list that is triggered by the login event happening

At least one of these could be removed since it's just a waste of bandwidth, and would also eliminate a redundant player update on the client side.

Probably the best thing to do would be to filter out the player from the player list sent in (2).

This is a pretty minor improvement.