mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-17 10:11:02 +00:00
Disable "connect self" due to being broken, cleaned up ip+port part
Anyone know if "connect any" work at all? Would have disabled that too but apparently the game uses it if "-connect" is given with no params
This commit is contained in:
parent
030c437186
commit
9805b82fec
1 changed files with 10 additions and 5 deletions
|
@ -2253,7 +2253,8 @@ static void Command_connect(void)
|
||||||
CONS_Printf(M_GetText(
|
CONS_Printf(M_GetText(
|
||||||
"Connect <serveraddress> (port): connect to a server\n"
|
"Connect <serveraddress> (port): connect to a server\n"
|
||||||
"Connect ANY: connect to the first lan server found\n"
|
"Connect ANY: connect to the first lan server found\n"
|
||||||
"Connect SELF: connect to your own server.\n"));
|
//"Connect SELF: connect to your own server.\n"
|
||||||
|
));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2267,7 +2268,7 @@ static void Command_connect(void)
|
||||||
// we don't request a restart unless the filelist differs
|
// we don't request a restart unless the filelist differs
|
||||||
|
|
||||||
server = false;
|
server = false;
|
||||||
|
/*
|
||||||
if (!stricmp(COM_Argv(1), "self"))
|
if (!stricmp(COM_Argv(1), "self"))
|
||||||
{
|
{
|
||||||
servernode = 0;
|
servernode = 0;
|
||||||
|
@ -2276,6 +2277,7 @@ static void Command_connect(void)
|
||||||
//SV_SpawnServer();
|
//SV_SpawnServer();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
*/
|
||||||
{
|
{
|
||||||
// used in menu to connect to a server in the list
|
// used in menu to connect to a server in the list
|
||||||
if (netgame && !stricmp(COM_Argv(1), "node"))
|
if (netgame && !stricmp(COM_Argv(1), "node"))
|
||||||
|
@ -2299,10 +2301,13 @@ static void Command_connect(void)
|
||||||
|
|
||||||
if (!stricmp(COM_Argv(1), "any"))
|
if (!stricmp(COM_Argv(1), "any"))
|
||||||
servernode = BROADCASTADDR;
|
servernode = BROADCASTADDR;
|
||||||
else if (I_NetMakeNodewPort && COM_Argc() >= 3)
|
|
||||||
servernode = I_NetMakeNodewPort(COM_Argv(1), COM_Argv(2));
|
|
||||||
else if (I_NetMakeNodewPort)
|
else if (I_NetMakeNodewPort)
|
||||||
servernode = I_NetMakeNode(COM_Argv(1));
|
{
|
||||||
|
if (COM_Argc() >= 3) // address AND port
|
||||||
|
servernode = I_NetMakeNodewPort(COM_Argv(1), COM_Argv(2));
|
||||||
|
else // address only, or address:port
|
||||||
|
servernode = I_NetMakeNode(COM_Argv(1));
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
CONS_Alert(CONS_ERROR, M_GetText("There is no server identification with this network driver\n"));
|
CONS_Alert(CONS_ERROR, M_GetText("There is no server identification with this network driver\n"));
|
||||||
|
|
Loading…
Reference in a new issue