This commit is contained in:
vis2k 2022-10-10 10:56:16 +02:00
parent 2310c248c1
commit 5efcd8f113

View File

@ -123,6 +123,7 @@ public void SetSyncVarDirtyBit(ulong dirtyBit)
// true if syncInterval elapsed and any SyncVar or SyncObject is dirty // true if syncInterval elapsed and any SyncVar or SyncObject is dirty
// OR both bitmasks. != 0 if either was dirty. // OR both bitmasks. != 0 if either was dirty.
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public bool IsDirty() => public bool IsDirty() =>
NetworkTime.localTime - lastSyncTime >= syncInterval && NetworkTime.localTime - lastSyncTime >= syncInterval &&
(syncVarDirtyBits | syncObjectDirtyBits) != 0UL; (syncVarDirtyBits | syncObjectDirtyBits) != 0UL;