diff options
author | Patric Stout <truebrain@openttd.org> | 2021-04-29 15:37:02 +0200 |
---|---|---|
committer | Patric Stout <github@truebrain.nl> | 2021-07-11 20:38:42 +0200 |
commit | e4d216e44b4a5d87094b4478ea4cf18109f99a35 (patch) | |
tree | 837b4b027ebaf0a328d0336ac93c110379a015ba /src/table | |
parent | 1baec41542780cf4fc898df7d2fc9925d823fb44 (diff) | |
download | openttd-e4d216e44b4a5d87094b4478ea4cf18109f99a35.tar.xz |
Feature: join servers based on their invite code
This removes the need to know a server IP to join it. Invite codes
are small (~7 characters) indentifiers for servers, which can be
exchanged with other players to join the servers.
Diffstat (limited to 'src/table')
-rw-r--r-- | src/table/settings/network_secrets_settings.ini | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/table/settings/network_secrets_settings.ini b/src/table/settings/network_secrets_settings.ini index fced9240e..4613636a8 100644 --- a/src/table/settings/network_secrets_settings.ini +++ b/src/table/settings/network_secrets_settings.ini @@ -74,3 +74,17 @@ type = SLE_STR length = NETWORK_SERVER_ID_LENGTH flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_NETWORK_ONLY def = nullptr + +[SDTC_SSTR] +var = network.server_invite_code +type = SLE_STR +length = NETWORK_INVITE_CODE_LENGTH +flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_NETWORK_ONLY +def = nullptr + +[SDTC_SSTR] +var = network.server_invite_code_secret +type = SLE_STR +length = NETWORK_INVITE_CODE_SECRET_LENGTH +flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_NETWORK_ONLY +def = nullptr |