Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Client/mods/deathmatch/logic/CNetAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ void CNetAPI::DoPulse()

// Grab the local player
CClientPlayer* pPlayer = m_pPlayerManager->GetLocalPlayer();
if (pPlayer && !pPlayer->IsDeadOnNetwork())
if (pPlayer)
{
unsigned long ulCurrentTime = CClientTime::GetTime();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ bool CPlayerPuresyncPacket::Read(NetBitStreamInterface& BitStream)
return false;

// Only read this packet if it matches the current time context that
// player is in.
if (!pSourcePlayer->CanUpdateSync(ucTimeContext))
// player is in. Allow position updates for dead players
if (!pSourcePlayer->CanUpdateSync(ucTimeContext) && !pSourcePlayer->IsDead())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think dead players can be synchronized if the time context doesn't match

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MohabCodeX Please respond to the feedback

{
return false;
}
Expand Down