Skip to content

Commit

Permalink
Update SPEED_TO_MPH constant to correct value
Browse files Browse the repository at this point in the history
User @Glenwing reported in #988 that the speed constant was wrong; should be `31.06f` (not `32.06f`).

Fixes #988
  • Loading branch information
originalfoo committed Dec 9, 2021
1 parent 08cf09f commit 398811f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TLM/TLM/Constants.cs
Expand Up @@ -20,7 +20,7 @@ public static class Constants {
/// Conversion rate from MPH to game speed (also exists in TrafficManager.API.Constants)
/// </summary>
[UsedImplicitly]
public const float SPEED_TO_MPH = 32.06f; // 50 km/h converted to mph
public const float SPEED_TO_MPH = 31.06f; // 50 km/h converted to mph

/// <summary>
/// Screen pixel size for overlay signs, such as one-per-segment speed limits.
Expand Down Expand Up @@ -50,4 +50,4 @@ public static class Constants {

public static INotifier Notifier => TrafficManager.Notifier.Instance;
}
}
}

0 comments on commit 398811f

Please sign in to comment.