-
-
Notifications
You must be signed in to change notification settings - Fork 844
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change: multiple modes to send NewGRF data to client / Game Coordinator
NewGRFs cannot be changed in multiplayer games, and consumes a lot of bytes. So only send it once to the Game Coordiantor on registration, and skip the field after that for any update. A new game will restart the registration, so any NewGRF change between games is picked up via the new registration. Clients that look at the NewGRFs a server has, want to know the names of the NewGRFs more than the IDs. So in addition to the ID and MD5, send the full name to the clients too. This solution is picked so the Game Coordinator isn't sending the names of all the NewGRFs to the clients constantly (which would make the server-listing very large), but still allow clinets to see the name of a specific server if he clicks the button.
- Loading branch information
Showing
6 changed files
with
70 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters