Skip to content

Commit 3eb2b44

Browse files
committed
Ensure that buffered player info gets processed
1 parent 29a2fdb commit 3eb2b44

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

Source/msg.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -453,9 +453,11 @@ void PrePacket()
453453
return;
454454
}
455455

456-
if (!IsNetPlayerValid(playerId)) {
457-
Log("Source of network message is no longer valid");
458-
return;
456+
if (IsNoneOf(cmdId, CMD_SEND_PLRINFO, CMD_ACK_PLRINFO)) {
457+
if (!IsNetPlayerValid(playerId)) {
458+
Log("Source of network message is no longer valid");
459+
return;
460+
}
459461
}
460462

461463
const size_t size = ParseCmd(playerId, reinterpret_cast<TCmd *>(data), remainingBytes);

0 commit comments

Comments
 (0)