diff options
author | dominik <dominik@openttd.org> | 2004-08-22 10:23:37 +0000 |
---|---|---|
committer | dominik <dominik@openttd.org> | 2004-08-22 10:23:37 +0000 |
commit | 0bd907e88df535a11483b5bdcb5763a5fce0cbf5 (patch) | |
tree | ba05804e536e0dfe9e8f04ff59eca4cecbea04e5 /settings.c | |
parent | b2340212c393d2488b8554dccafb9ab56e00dee5 (diff) | |
download | openttd-0bd907e88df535a11483b5bdcb5763a5fce0cbf5.tar.xz |
(svn r106) New network core (by sign_de)
Features:
* network core is dynamicly loaded when needed (-n isn't needed anymore)
for easy switching between single and multiplayer. But commandline
shortcuts are still enabled:
-n = autodetect network server
-n [ip] = connect to the server
* udp now uses 2 different ports
- you can run 1 server and serveral clients on one pc
- the clients udp-socket gets unloaded when the
network game starts
- the servers udp-sockets remains online to allow the
network gui to detect itself
* new gameinfo structure
this struct is available for every online/lan game
* dynamic NetworkGameList
Diffstat (limited to 'settings.c')
-rw-r--r-- | settings.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/settings.c b/settings.c index 134153672..56fee932c 100644 --- a/settings.c +++ b/settings.c @@ -760,7 +760,8 @@ static const SettingDesc misc_settings[] = { }; static const SettingDesc network_settings[] = { - {"port", SDT_UINT | SDT_NOSAVE, (void*)3979, &_network_port}, + {"port", SDT_UINT | SDT_NOSAVE, (void*)3978, &_network_client_port}, + {"server_port", SDT_UINT | SDT_NOSAVE, (void*)3979, &_network_server_port}, {"sync_freq", SDT_UINT | SDT_NOSAVE, (void*)4, &_network_sync_freq}, {"ahead_frames", SDT_UINT | SDT_NOSAVE, (void*)5, &_network_ahead_frames}, {NULL} |