Skip to content

Commit

Permalink
Anticipate checkpoint change for rivals
Browse files Browse the repository at this point in the history
  • Loading branch information
oldnapalm committed Sep 13, 2021
1 parent 6af9ced commit e652806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CommunityRaces.cs
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ public void OnTick(object sender, EventArgs e)
for (int i = 0; i < _rivalCheckpointStatus.Count; i++)
{
Tuple<Rival, int> tuple = _rivalCheckpointStatus[i];
if (tuple.Item1.Vehicle.IsInRangeOf(_currentRace.Checkpoints[tuple.Item2], 20f))
if (tuple.Item1.Vehicle.IsInRangeOf(_currentRace.Checkpoints[tuple.Item2], 50f))
{
tuple.Item1.Character.Task.ClearAll();
if (_currentRace.Checkpoints.Length <= tuple.Item2 + 1)
Expand Down

0 comments on commit e652806

Please sign in to comment.