mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-13 07:57:52 +00:00
Fix handshakes between GCC and MSVC
u_long has two different sizes between Linux GCC and MSVC Stopped netgames from starting up if player count wont fit
This commit is contained in:
parent
c9252d1919
commit
759f1bb81b
1 changed files with 7 additions and 1 deletions
|
@ -135,7 +135,7 @@ struct PreGamePacket
|
||||||
};
|
};
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
u_long address;
|
DWORD address;
|
||||||
u_short port;
|
u_short port;
|
||||||
BYTE player;
|
BYTE player;
|
||||||
BYTE pad;
|
BYTE pad;
|
||||||
|
@ -660,6 +660,12 @@ void HostGame (int i)
|
||||||
numplayers = 2;
|
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)
|
if (numplayers == 1)
|
||||||
{ // Special case: Only 1 player, so don't bother starting the network
|
{ // Special case: Only 1 player, so don't bother starting the network
|
||||||
netgame = false;
|
netgame = false;
|
||||||
|
|
Loading…
Reference in a new issue