diff options
author | truelight <truelight@openttd.org> | 2004-12-22 18:56:52 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2004-12-22 18:56:52 +0000 |
commit | d66adc937da88a590621a6f6eead31b167d6b64c (patch) | |
tree | 74abfeb2224cb4741f9ff826c51fb123373fb918 /console_cmds.c | |
parent | 90b2b2144b9ef9ebd4ec30bf905ef7239e004891 (diff) | |
download | openttd-d66adc937da88a590621a6f6eead31b167d6b64c.tar.xz |
(svn r1228) -Add: [Network] When a server normally shuts down, it removed itself
from the server-list
Diffstat (limited to 'console_cmds.c')
-rw-r--r-- | console_cmds.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/console_cmds.c b/console_cmds.c index e412aa0fd..e513af4ba 100644 --- a/console_cmds.c +++ b/console_cmds.c @@ -780,8 +780,10 @@ DEF_CONSOLE_CMD(ConSet) { if (argc == 3) { if (strcmp(argv[2], "on") == 0 || atoi(argv[2]) == 1) _network_advertise = true; - else + else { + NetworkUDPRemoveAdvertise(); _network_advertise = false; + } IConsolePrintF(_iconsole_color_warning, "Server-advertise changed to '%s'", (_network_advertise)?"on":"off"); } else { IConsolePrintF(_iconsole_color_default, "Current server-advertise is '%s'", (_network_advertise)?"on":"off"); |