summaryrefslogtreecommitdiff
path: root/console_cmds.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-22 18:56:52 +0000
committertruelight <truelight@openttd.org>2004-12-22 18:56:52 +0000
commitd66adc937da88a590621a6f6eead31b167d6b64c (patch)
tree74abfeb2224cb4741f9ff826c51fb123373fb918 /console_cmds.c
parent90b2b2144b9ef9ebd4ec30bf905ef7239e004891 (diff)
downloadopenttd-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.c4
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");