- Set packet server as the default for four or more player games, and also the

default for three player games where the other players are not in the same
  private IP range.




SVN r1364 (trunk)
This commit is contained in:
Randy Heit 2009-01-24 04:47:07 +00:00
commit b5a5204911
4 changed files with 80 additions and 6 deletions

View file

@ -1583,12 +1583,16 @@ void D_CheckNetGame (void)
}
// I_InitNetwork sets doomcom and netgame
I_InitNetwork ();
if (I_InitNetwork ())
{
NetMode = NET_PacketServer;
}
if (doomcom.id != DOOMCOM_ID)
{
I_FatalError ("Doomcom buffer invalid!");
}
players[0].settings_controller = true;
consoleplayer = doomcom.consoleplayer;
v = Args->CheckValue ("-netmode");
@ -1596,6 +1600,11 @@ void D_CheckNetGame (void)
{
NetMode = atoi (v) != 0 ? NET_PacketServer : NET_PeerToPeer;
}
if (doomcom.numnodes > 1)
{
Printf ("Selected " TEXTCOLOR_BLUE "%s" TEXTCOLOR_NORMAL " networking mode. (%s)\n", NetMode == NET_PeerToPeer ? "peer to peer" : "packet server",
v != NULL ? "forced" : "auto");
}
// [RH] Setup user info
D_SetupUserInfo ();