Browse Source

[hellfire] multi_send_msg_packet

pull/977/head
Anders Jenbo 5 years ago
parent
commit
3a8dab462e
  1. 2
      Source/multi.cpp

2
Source/multi.cpp

@ -214,7 +214,7 @@ void multi_send_msg_packet(int pmask, BYTE *src, BYTE len)
memcpy(pkt.body, src, len);
for (v = 1, p = 0; p < MAX_PLRS; p++, v <<= 1) {
if (v & pmask) {
if (!SNetSendMessage(p, &pkt.hdr, t) && SErrGetLastError() != STORM_ERROR_INVALID_PLAYER) {
if (!SNetSendMessage(p, &pkt.hdr, t) && DERROR() != STORM_ERROR_INVALID_PLAYER) {
nthread_terminate_game("SNetSendMessage");
return;
}

Loading…
Cancel
Save