Skip to content

Commit

Permalink
Server: Removed "net server start/go/stop/close" commands
Browse files Browse the repository at this point in the history
The server is always "started" when it's running; quitting the server
means closing it. In other words, it is no longer possible for a
server instance to be running without being in the "started" state.
  • Loading branch information
skyjake committed Mar 28, 2013
1 parent b00cfab commit d5cd8e9
Showing 1 changed file with 1 addition and 42 deletions.
43 changes: 1 addition & 42 deletions doomsday/client/src/network/net_main.cpp
Expand Up @@ -1221,13 +1221,11 @@ D_CMD(Net)
Con_Printf(" setup client\n");
Con_Printf(" search (address) [port] (local or targeted query)\n");
Con_Printf(" servers (asks the master server)\n");
//Con_Printf(" connect (idx)\n");
Con_Printf(" connect (idx)\n");
Con_Printf(" mconnect (m-idx)\n");
Con_Printf(" disconnect\n");
#endif
#ifdef __SERVER__
Con_Printf(" server go/start\n");
Con_Printf(" server close/stop\n");
Con_Printf(" announce\n");
#endif
return true;
Expand Down Expand Up @@ -1284,45 +1282,6 @@ D_CMD(Net)

if(argc == 3) // Two arguments?
{
#ifdef __SERVER__
if(!stricmp(argv[1], "server"))
{
if(!stricmp(argv[2], "go") || !stricmp(argv[2], "start"))
{
if(netGame)
{
Con_Message("Already in a netGame.");
return false;
}

CmdReturnValue = success = N_ServerOpen();

if(success)
{
Con_Message("Server \"%s\" started.", serverName);
}
}
else if(!stricmp(argv[2], "close") || !stricmp(argv[2], "stop"))
{
if(!isServer)
{
Con_Message("This is not a server!");
return false;
}

// Close the server and kick everybody out.
if((success = N_ServerClose()) != false)
{
Con_Message("Server \"%s\" closed.", serverName);
}
}
else
{
Con_Message("Bad arguments.");
return false;
}
}
#endif // __SERVER__
#ifdef __CLIENT__
if(!stricmp(argv[1], "search"))
{
Expand Down

0 comments on commit d5cd8e9

Please sign in to comment.