mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-26 22:10:17 +00:00
add flags to sync data
This commit is contained in:
parent
6616512698
commit
ae834f63c7
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue