Browse Source

Update dthread.cpp

pull/292/head
Anders Jenbo 7 years ago committed by GitHub
parent
commit
56f04e1919
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      Source/dthread.cpp

4
Source/dthread.cpp

@ -21,7 +21,7 @@ void dthread_remove_player(int pnum)
#endif
for (pkt = sgpInfoHead; pkt; pkt = pkt->pNext) {
if (pkt->dwSpaceLeft == pnum)
pkt->dwSpaceLeft = 4;
pkt->dwSpaceLeft = MAX_PLRS;
}
#ifdef __cplusplus
sgMemCrit.Leave();
@ -106,7 +106,7 @@ unsigned int __stdcall dthread_handler(void *)
#endif
if (pkt) {
if (pkt->dwSpaceLeft != 4)
if (pkt->dwSpaceLeft != MAX_PLRS)
multi_send_zero_packet(pkt->dwSpaceLeft, pkt->data[0], &pkt->data[8], *(DWORD *)&pkt->data[4]);
dwMilliseconds = 1000 * *(DWORD *)&pkt->data[4] / gdwDeltaBytesSec;

Loading…
Cancel
Save