|
@@ -46,26 +46,25 @@ static const uint NETWORK_SERVER_ID_LENG
|
|
|
static const uint NETWORK_REVISION_LENGTH = 15; ///< The maximum length of the revision, in bytes including '\0'
|
|
|
static const uint NETWORK_PASSWORD_LENGTH = 33; ///< The maximum length of the password, in bytes including '\0' (must be >= NETWORK_SERVER_ID_LENGTH)
|
|
|
static const uint NETWORK_CLIENTS_LENGTH = 200; ///< The maximum length for the list of clients that controls a company, in bytes including '\0'
|
|
|
static const uint NETWORK_CLIENT_NAME_LENGTH = 25; ///< The maximum length of a client's name, in bytes including '\0'
|
|
|
static const uint NETWORK_RCONCOMMAND_LENGTH = 500; ///< The maximum length of a rconsole command, in bytes including '\0'
|
|
|
static const uint NETWORK_GAMESCRIPT_JSON_LENGTH = SEND_MTU - 3; ///< The maximum length of a gamescript json string, in bytes including '\0'. Must not be longer than SEND_MTU including header (3 bytes)
|
|
|
static const uint NETWORK_CHAT_LENGTH = 900; ///< The maximum length of a chat message, in bytes including '\0'
|
|
|
|
|
|
static const uint NETWORK_GRF_NAME_LENGTH = 80; ///< Maximum length of the name of a GRF
|
|
|
|
|
|
/**
|
|
|
* Maximum number of GRFs that can be sent.
|
|
|
* This value is related to number of handles (files) OpenTTD can open.
|
|
|
* This is currently 64. Two are used for configuration and sound.
|
|
|
* This limit is reached when PACKET_UDP_SERVER_RESPONSE reaches the maximum size of SEND_MTU bytes.
|
|
|
*/
|
|
|
static const uint NETWORK_MAX_GRF_COUNT = 62;
|
|
|
|
|
|
static const uint NETWORK_NUM_LANGUAGES = 36; ///< Number of known languages (to the network protocol) + 1 for 'any'.
|
|
|
|
|
|
/**
|
|
|
* The number of landscapes in OpenTTD.
|
|
|
* This number must be equal to NUM_LANDSCAPE, but as this number is used
|
|
|
* within the network code and that the network code is shared with the
|
|
|
* masterserver/updater, it has to be declared in here too. In network.cpp
|
|
|
* there is a compile assertion to check that this NUM_LANDSCAPE is equal
|
|
|
* to NETWORK_NUM_LANDSCAPES.
|