Skip to content

Commit 0ae4579

Browse files
Merge pull request #870 from Roy-Herrera-UAI/main
Fix _boostStartTick comparison
2 parents 14e9f26 + 550f6b3 commit 0ae4579

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)