Browse Source

Use MAX_PLRS (dX part)

pull/129/head
Manuel K 7 years ago committed by Anders Jenbo
parent
commit
af08ce4934
  1. 6
      SourceX/DiabloUI/selconn.cpp
  2. 2
      SourceX/dvlnet/udp_p2p.cpp

6
SourceX/DiabloUI/selconn.cpp

@ -57,15 +57,15 @@ void selconn_Esc()
void selconn_Focus(int value)
{
int players = 4;
int players = MAX_PLRS;
switch (value) {
case 0:
sprintf(selconn_Description, "All computers must be connected to a TCP-compatible network.");
players = 4;
players = MAX_PLRS;
break;
case 1:
sprintf(selconn_Description, "All computers must be connected to a UDP-compatible network.");
players = 4;
players = MAX_PLRS;
break;
case 2:
sprintf(selconn_Description, "Play by yourself with no network exposure.");

2
SourceX/dvlnet/udp_p2p.cpp

@ -65,7 +65,7 @@ int udp_p2p::join(std::string addrstr, std::string passwd)
SDL_Delay(1000);
}
}
return (plr_self == PLR_BROADCAST ? 4 : plr_self);
return (plr_self == PLR_BROADCAST ? MAX_PLRS : plr_self);
}
void udp_p2p::poll()

Loading…
Cancel
Save