Multiplayer: Read class-specific snapshot data only if network-synced

This commit is contained in:
Stephen Saunders 2024-01-19 23:10:13 -05:00
parent 9511a529af
commit 4569238301

View file

@ -983,8 +983,8 @@ void idGameLocal::ClientReadSnapshot( const idSnapShot& ss )
ent->FlagNewSnapshot();
// read the class specific data from the snapshot
if( msg.GetRemainingReadBits() > 0 )
// read the class specific data from the snapshot; SRS - only if network-synced
if( msg.GetRemainingReadBits() > 0 && ent->fl.networkSync )
{
ent->ReadFromSnapshot_Ex( msg );
ent->snapshotBits = msg.GetSize();