Skip to content

Commit

Permalink
Fix strange typos in TrafficPriorityManager and CustomVehicleAI
Browse files Browse the repository at this point in the history
  • Loading branch information
DeltaKilo committed Jan 9, 2017
1 parent 643b402 commit 4674fe4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions TLM/TLM/Custom/AI/CustomVehicleAI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ internal static bool MayChangeSegment(ushort vehicleId, ref Vehicle vehicleData,
#endif
vehicleState.JunctionTransitState = VehicleJunctionTransitState.Stop;

if (sqrSpeed <= TrafficPriorityManager.MAX_SQR_YÌELD_VELOCITY || Options.simAccuracy <= 2) {
if (sqrSpeed <= TrafficPriorityManager.MAX_SQR_YIELD_VELOCITY || Options.simAccuracy <= 2) {
if (Options.simAccuracy >= 4) {
vehicleState.JunctionTransitState = VehicleJunctionTransitState.Leave;
} else {
Expand Down Expand Up @@ -482,7 +482,7 @@ internal static bool MayChangeSegment(ushort vehicleId, ref Vehicle vehicleData,
#endif

// vehicle has not yet reached yield speed
maxSpeed = TrafficPriorityManager.MAX_YÌELD_VELOCITY;
maxSpeed = TrafficPriorityManager.MAX_YIELD_VELOCITY;
return false;
}
} else {
Expand Down
4 changes: 2 additions & 2 deletions TLM/TLM/Manager/TrafficPriorityManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ static TrafficPriorityManager() {
}

public const float MAX_SQR_STOP_VELOCITY = 0.01f;
public const float MAX_SQR_YÌELD_VELOCITY = 0.09f;
public const float MAX_YÌELD_VELOCITY = 0.3f;
public const float MAX_SQR_YIELD_VELOCITY = 0.09f;
public const float MAX_YIELD_VELOCITY = 0.3f;

/// <summary>
/// List of segments that are connected to roads with timed traffic lights or priority signs. Index: segment id
Expand Down

0 comments on commit 4674fe4

Please sign in to comment.