File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -259,7 +259,8 @@ public bool CanClientRead(uint clientId)
259
259
public bool IsDirty ( )
260
260
{
261
261
if ( dirtyEvents . Count == 0 ) return false ;
262
- if ( Settings . SendTickrate <= 0 ) return true ;
262
+ if ( Settings . SendTickrate == 0 ) return true ;
263
+ if ( Settings . SendTickrate < 0 ) return false ;
263
264
if ( NetworkingManager . singleton . NetworkTime - LastSyncedTime >= ( 1f / Settings . SendTickrate ) ) return true ;
264
265
return false ;
265
266
}
Original file line number Diff line number Diff line change @@ -71,7 +71,8 @@ public void ResetDirty()
71
71
public bool IsDirty ( )
72
72
{
73
73
if ( dirtyEvents . Count == 0 ) return false ;
74
- if ( Settings . SendTickrate <= 0 ) return true ;
74
+ if ( Settings . SendTickrate == 0 ) return true ;
75
+ if ( Settings . SendTickrate < 0 ) return false ;
75
76
if ( NetworkingManager . singleton . NetworkTime - LastSyncedTime >= ( 1f / Settings . SendTickrate ) ) return true ;
76
77
return false ;
77
78
}
Original file line number Diff line number Diff line change @@ -108,7 +108,8 @@ public void ResetDirty()
108
108
public bool IsDirty ( )
109
109
{
110
110
if ( ! isDirty ) return false ;
111
- if ( Settings . SendTickrate <= 0 ) return true ;
111
+ if ( Settings . SendTickrate == 0 ) return true ;
112
+ if ( Settings . SendTickrate < 0 ) return false ;
112
113
if ( NetworkingManager . singleton . NetworkTime - LastSyncedTime >= ( 1f / Settings . SendTickrate ) ) return true ;
113
114
return false ;
114
115
}
You can’t perform that action at this time.
0 commit comments