mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 15:21:51 +00:00
Merge branch 'handshake-hotpatch' of https://github.com/Edward850/zdoom
This commit is contained in:
commit
fafb0a672c
1 changed files with 8 additions and 2 deletions
|
@ -135,8 +135,8 @@ struct PreGamePacket
|
|||
};
|
||||
struct
|
||||
{
|
||||
u_long address;
|
||||
u_short port;
|
||||
DWORD address;
|
||||
WORD port;
|
||||
BYTE player;
|
||||
BYTE pad;
|
||||
} machines[MAXNETNODES];
|
||||
|
@ -660,6 +660,12 @@ void HostGame (int i)
|
|||
numplayers = 2;
|
||||
}
|
||||
|
||||
if (numplayers > MAXNETNODES)
|
||||
{
|
||||
I_FatalError("You cannot host a game with %d players. The limit is currently %d.", numplayers, MAXNETNODES);
|
||||
return;
|
||||
}
|
||||
|
||||
if (numplayers == 1)
|
||||
{ // Special case: Only 1 player, so don't bother starting the network
|
||||
netgame = false;
|
||||
|
|
Loading…
Reference in a new issue