We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36a82f9 commit 63c287bCopy full SHA for 63c287b
Server/mods/deathmatch/logic/packets/CPlayerPuresyncPacket.cpp
@@ -35,9 +35,9 @@ bool CPlayerPuresyncPacket::Read(NetBitStreamInterface& BitStream)
35
if (!BitStream.Read(ucTimeContext))
36
return false;
37
38
- // Only read this packet if it matches the current time context that
39
- // player is in. Allow position updates for dead players
40
- if (!pSourcePlayer->CanUpdateSync(ucTimeContext) && !pSourcePlayer->IsDead())
+ // Only read this packet if it matches the current time context
+ // Time context is validated for all players (alive and dead) to prevent stale packets
+ if (!pSourcePlayer->CanUpdateSync(ucTimeContext))
41
{
42
43
}
0 commit comments