mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-16 04:30:38 +00:00
sw/src/network.cpp: Fix waitforeverybody in Master/Slave
modes. This uses SVN r1135 and r1143 as a reference.
This commit is contained in:
parent
dea7c83361
commit
33043b3b05
1 changed files with 5 additions and 1 deletions
|
@ -607,9 +607,10 @@ waitforeverybody(void)
|
|||
tempbuf[1] = Player[myconnectindex].playerreadyflag + 1;
|
||||
size++;
|
||||
#endif
|
||||
// if we're a peer or slave, not a master
|
||||
if (!NetBroadcastMode && myconnectindex != connecthead)
|
||||
netsendpacket(connecthead, tempbuf, size);
|
||||
else
|
||||
else if (NetBroadcastMode)
|
||||
netbroadcastpacket(tempbuf, size);
|
||||
|
||||
#if 0
|
||||
|
@ -677,6 +678,9 @@ waitforeverybody(void)
|
|||
|
||||
if (i < 0)
|
||||
{
|
||||
// master sends ready packet once it hears from all slaves
|
||||
if (!NetBroadcastMode && myconnectindex == connecthead)
|
||||
netbroadcastpacket(tempbuf, size);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue