(svn r1228) -Add: [Network] When a server normally shuts down, it removed itself

from the server-list
This commit is contained in:
truelight
2004-12-22 18:56:52 +00:00
parent 90b2b2144b
commit d66adc937d
4 changed files with 46 additions and 3 deletions

View File

@@ -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");