Skip to content

Commit d94dfa5

Browse files
committed
Allow position updates for dead players
1 parent c79fce5 commit d94dfa5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Client/mods/deathmatch/logic/CNetAPI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ void CNetAPI::DoPulse()
295295

296296
// Grab the local player
297297
CClientPlayer* pPlayer = m_pPlayerManager->GetLocalPlayer();
298-
if (pPlayer && !pPlayer->IsDeadOnNetwork())
298+
if (pPlayer)
299299
{
300300
unsigned long ulCurrentTime = CClientTime::GetTime();
301301

Server/mods/deathmatch/logic/packets/CPlayerPuresyncPacket.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ bool CPlayerPuresyncPacket::Read(NetBitStreamInterface& BitStream)
3636
return false;
3737

3838
// Only read this packet if it matches the current time context that
39-
// player is in.
40-
if (!pSourcePlayer->CanUpdateSync(ucTimeContext))
39+
// player is in. Allow position updates for dead players
40+
if (!pSourcePlayer->CanUpdateSync(ucTimeContext) && !pSourcePlayer->IsDead())
4141
{
4242
return false;
4343
}

0 commit comments

Comments
 (0)