Skip to content

Commit

Permalink
Removed cvar net-port-control and added "-port" option
Browse files Browse the repository at this point in the history
net-port-control was essentially an alias for net-ip-port. No need
to keep both names…
  • Loading branch information
skyjake committed Dec 20, 2011
1 parent 9bc0170 commit fd47531
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
6 changes: 0 additions & 6 deletions doomsday/engine/data/cphelp.txt
Expand Up @@ -962,12 +962,6 @@ desc = TCP/IP address for searching servers.
[net-ip-port]
desc = TCP port to use for control connections.

[net-port-control]
desc = TCP port to use for control connections.

[net-port-data]
desc = UDP port to use for client data traffic.

[net-queue-show]
desc = Monitor send queue.

Expand Down
4 changes: 4 additions & 0 deletions doomsday/engine/portable/src/dd_main.c
Expand Up @@ -433,6 +433,10 @@ int DD_Main(void)
if(ArgCheckWith("-connect", 1))
Con_Executef(CMDS_CMDLINE, false, "connect %s", ArgNext());

// Incoming TCP port.
if(ArgCheckWith("-port", 1))
Con_Executef(CMDS_CMDLINE, false, "net-ip-port %i", ArgNext());

// Server start command.
// (shortcut for -command "net init tcpip; net server start").
if(ArgExists("-server"))
Expand Down
2 changes: 0 additions & 2 deletions doomsday/engine/portable/src/sys_network.c
Expand Up @@ -175,8 +175,6 @@ void N_Register(void)
{
C_VAR_CHARPTR("net-ip-address", &nptIPAddress, 0, 0, 0);
C_VAR_INT("net-ip-port", &nptIPPort, CVF_NO_MAX, 0, 0);
C_VAR_INT("net-port-control", &nptIPPort, CVF_NO_MAX, 0, 0);
//C_VAR_INT("net-port-data", &nptUDPPort, CVF_NO_MAX, 0, 0);
}

static void N_StartJoinedListener(void)
Expand Down
3 changes: 1 addition & 2 deletions doomsday/engine/portable/src/ui_mpi.c
Expand Up @@ -383,8 +383,7 @@ void MPIGoBack(ui_object_t *ob)
void MPIStartServer(ui_object_t *ob)
{
N_ShutdownService();
Con_SetInteger("net-port-control", strtol(str_ipport, 0, 0), true);
//Con_SetInteger("net-port-data", strtol(str_myudp, 0, 0), true);
Con_SetInteger("net-ip-port", strtol(str_ipport, 0, 0), true);
N_InitService(true);

// Update the variables.
Expand Down

0 comments on commit fd47531

Please sign in to comment.