Skip to content

Commit

Permalink
Fix Typos in TrafficPriorityManager caused by UTF-8 symbols.
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorPhilipp committed Jan 9, 2017
2 parents a3ef25a + 4674fe4 commit edfed2b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 14 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -182,3 +182,6 @@ UpgradeLog*.htm
# Microsoft Fakes
FakesAssemblies/
/logo/

# MSVS 2017 artifacts
/.vs/slnx.sqlite
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
10 changes: 0 additions & 10 deletions TLM/TLM/TLM.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -98,17 +98,13 @@
<Compile Include="Custom\Manager\CustomNetManager.cs" />
<Compile Include="Custom\Manager\CustomCitizenManager.cs" />
<Compile Include="Custom\Manager\CustomVehicleManager.cs" />
<Compile Include="GameBridge\INetLaneBridge.cs" />
<Compile Include="GameBridge\INetNodeBridge.cs" />
<Compile Include="GameBridge\INetSegmentBridge.cs" />
<Compile Include="Manager\AbstractCustomManager.cs" />
<Compile Include="Manager\AbstractNodeGeometryObservingManager.cs" />
<Compile Include="Manager\AbstractSegmentGeometryObservingManager.cs" />
<Compile Include="Manager\ExtBuildingManager.cs" />
<Compile Include="Manager\ICustomDataManager.cs" />
<Compile Include="Manager\LaneArrowManager.cs" />
<Compile Include="Manager\OptionsManager.cs" />
<Compile Include="Manager\TemplateManager.cs" />
<Compile Include="Manager\TrafficLightManager.cs" />
<Compile Include="Manager\TrafficMeasurementManager.cs" />
<Compile Include="Manager\JunctionRestrictionsManager.cs" />
Expand All @@ -126,12 +122,6 @@
<Compile Include="Geometry\SegmentEndGeometry.cs" />
<Compile Include="Manager\VehicleStateManager.cs" />
<Compile Include="Manager\VehicleRestrictionsManager.cs" />
<Compile Include="Traffic\Template\SegmentEndRestrictionsTemplate.cs" />
<Compile Include="Traffic\Template\NodeTemplate.cs" />
<Compile Include="Traffic\Template\LaneConnectionTemplate.cs" />
<Compile Include="Traffic\Template\LaneTemplate.cs" />
<Compile Include="Traffic\Template\SegmentEndTemplate.cs" />
<Compile Include="Traffic\Template\SegmentEndLightsTemplate.cs" />
<Compile Include="Traffic\VehicleJunctionTransitState.cs" />
<Compile Include="State\Configuration.cs" />
<Compile Include="Custom\AI\CustomCarAI.cs" />
Expand Down

0 comments on commit edfed2b

Please sign in to comment.