Skip to content

Commit

Permalink
Fixed ParScreen Score calc
Browse files Browse the repository at this point in the history
  • Loading branch information
DevulTj committed Oct 11, 2024
1 parent eb149ee commit aedf06e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Code/UI/HUD/ParScreen.razor
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
}
else
{
<div class="score @( $"score--{Score}" )">
@foreach ( var line in ScoreUtils.GetScore( Par, Score ).Split( ' ' ) )
<div class="score">
@foreach ( var line in ScoreUtils.GetScore( Par, Strokes ).Split(' '))
{
<label>@line</label>
}
Expand All @@ -32,7 +32,6 @@
private int Hole { get; }
private int Par { get; }
private int Strokes { get; }
private int Score => Par - Strokes;

public ParScreen( int hole, int par, int strokes )
{
Expand Down

0 comments on commit aedf06e

Please sign in to comment.