add flags to sync data

This commit is contained in:
in0finite 2021-02-06 17:19:35 +01:00
parent 6616512698
commit ae834f63c7

View file

@ -136,6 +136,9 @@ namespace SanAndreasUnity.Behaviours.Peds
if (initialState)
writer.Write(m_net_modelId);
byte flags = 0;
writer.Write(flags);
Dictionary<int, BoneInfo> bonesDict = initialState ? m_framesDict : m_rigidBodiesDict;
bool checkRigidBodyForNull = initialState;
@ -167,6 +170,8 @@ namespace SanAndreasUnity.Behaviours.Peds
if (initialState)
m_net_modelId = reader.ReadInt32();
byte flags = reader.ReadByte();
byte count = reader.ReadByte();
m_bonesSyncData.EnsureCount(count);