From d66adc937da88a590621a6f6eead31b167d6b64c Mon Sep 17 00:00:00 2001 From: truelight Date: Wed, 22 Dec 2004 18:56:52 +0000 Subject: (svn r1228) -Add: [Network] When a server normally shuts down, it removed itself from the server-list --- console_cmds.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'console_cmds.c') 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"); -- cgit v1.2.3-54-g00ecf