Skip to content

Commit 550f6b3

Browse files
Fix _boostStartTick comparison
1 parent 41dbab5 commit 550f6b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/FishNet/Demos/Prediction/Rigidbody/Scripts/RigidbodyPrediction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ private void PerformReplicate(ReplicateData rd, ReplicateState state = Replicate
224224
* to boost tick before adding boost.
225225
* This is done in the scenario a boost happened outside replay,
226226
* we don't want to boost during a replay before the boost started. */
227-
if (_boostStartTick != TimeManager.UNSET_TICK && rdTick <= _boostStartTick)
227+
if (_boostStartTick != TimeManager.UNSET_TICK && rdTick >= _boostStartTick)
228228
{
229229
//Add boost to forward force.
230230
forwardForce += new Vector3(0f, 0f, _boostForce);

0 commit comments

Comments
 (0)