Skip to content

Commit

Permalink
use SNPLAYER_OTHERS (#3117)
Browse files Browse the repository at this point in the history
  • Loading branch information
qndel authored Oct 13, 2021
1 parent aa90229 commit 2ae06f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/multi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ void NetSendHiPri(int playerId, const byte *data, size_t size)
msgSize = sync_all_monsters(lowpriBody, msgSize);
size_t len = gdwNormalMsgSize - msgSize;
pkt.hdr.wLen = len;
if (!SNetSendMessage(-2, &pkt.hdr, len))
if (!SNetSendMessage(SNPLAYER_OTHERS, &pkt.hdr, len))
nthread_terminate_game("SNetSendMessage");
}
}
Expand Down Expand Up @@ -729,7 +729,7 @@ bool NetInit(bool bSinglePlayer)
gbSomebodyWonGameKludge = false;
nthread_send_and_recv_turn(0, 0);
SetupLocalPositions();
SendPlayerInfo(-2, CMD_SEND_PLRINFO);
SendPlayerInfo(SNPLAYER_OTHERS, CMD_SEND_PLRINFO);

auto &myPlayer = Players[MyPlayerId];
ResetPlayerGFX(myPlayer);
Expand Down

0 comments on commit 2ae06f1

Please sign in to comment.