diff options
author | rubidium42 <rubidium@openttd.org> | 2021-07-18 13:42:01 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-07-18 19:36:38 +0200 |
commit | 3eaa4706325556bfb1351d2ff392b5bc205fd238 (patch) | |
tree | d32e1124e7f9eaa019e7334ac74a2131aed69256 /src/network/core/config.h | |
parent | 5dd524139fe46c0ea28206e30fb2311acb72ae82 (diff) | |
download | openttd-3eaa4706325556bfb1351d2ff392b5bc205fd238.tar.xz |
Feature: [Network] Optionally send NewGRF names with NewGRFs in GameInfo
Before 8a2da49 the NewGRF names were synchronized using UDP packets, however
those have been removed. With this a new version of the GameInfo packet is
introduced that allows to specify the type of serialisation happens for
NewGRFs. Either only the GRF ID and checksum, or those two plus the name of
the NewGRF.
On this request for local servers will send the NewGRFs names.
The Game Coordinator will get the names on the first registration, and after
that only the GRF ID and checksum.
Diffstat (limited to 'src/network/core/config.h')
-rw-r--r-- | src/network/core/config.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/core/config.h b/src/network/core/config.h index 6039c4252..ccc9cd263 100644 --- a/src/network/core/config.h +++ b/src/network/core/config.h @@ -47,7 +47,7 @@ static const uint16 TCP_MTU = 32767; ///< Numbe static const uint16 COMPAT_MTU = 1460; ///< Number of bytes we can pack in a single packet for backward compatibility static const byte NETWORK_GAME_ADMIN_VERSION = 1; ///< What version of the admin network do we use? -static const byte NETWORK_GAME_INFO_VERSION = 5; ///< What version of game-info do we use? +static const byte NETWORK_GAME_INFO_VERSION = 6; ///< What version of game-info do we use? static const byte NETWORK_COMPANY_INFO_VERSION = 6; ///< What version of company info is this? static const byte NETWORK_COORDINATOR_VERSION = 3; ///< What version of game-coordinator-protocol do we use? |