summaryrefslogtreecommitdiff
path: root/settings.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-15 21:54:07 +0000
committertruelight <truelight@openttd.org>2004-12-15 21:54:07 +0000
commit5f51b42c994a32947071e4258031a3e72c460633 (patch)
tree490bbeef55c1ff362f0569b15ad91356ba7d86be /settings.c
parent88862fcdb6d960e5dab5072257c65dd73ce2dfd5 (diff)
downloadopenttd-5f51b42c994a32947071e4258031a3e72c460633.tar.xz
(svn r1113) -Add: [Network] Added the GUI part for server advertising. When you go
to Start Server, you can select by connection: 'Internet (advertise)'. When selected, the server will announce itself to the server-list at http://servers.openttd.org (when finished)
Diffstat (limited to 'settings.c')
-rw-r--r--settings.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/settings.c b/settings.c
index 58edcd216..987a5b140 100644
--- a/settings.c
+++ b/settings.c
@@ -727,6 +727,7 @@ static const SettingDesc network_settings[] = {
{"frame_freq", SDT_UINT8 | SDT_NOSAVE, (void*)0, &_network_frame_freq, NULL},
{"server_bind_ip", SDT_STRINGBUF | (lengthof(_network_server_bind_ip_host) << 16), "0.0.0.0", &_network_server_bind_ip_host, NULL},
{"server_port", SDT_UINT, (void*)NETWORK_DEFAULT_PORT, &_network_server_port, NULL},
+ {"server_advertise",SDT_BOOL, (void*)false, &_network_advertise, NULL},
{"player_name", SDT_STRINGBUF | (lengthof(_network_player_name) << 16), NULL, &_network_player_name, NULL},
{"server_password", SDT_STRINGBUF | (lengthof(_network_game_info.server_password) << 16), NULL, &_network_game_info.server_password, NULL},
{"server_name", SDT_STRINGBUF | (lengthof(_network_server_name) << 16), NULL, &_network_server_name, NULL},