Skip to content

Commit

Permalink
misc: Fix 312
Browse files Browse the repository at this point in the history
  • Loading branch information
MATRIX-feather committed Mar 12, 2024
1 parent 64259af commit 0011e3c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -349,11 +349,15 @@ public CounterContainer(GameplayState gameplayState, ScoreProcessor scoreProcess
this.scoreProcessor = scoreProcessor;
}

private readonly PerformancePointsCounter counter = new PerformancePointsCounter
private readonly PerformancePointsCounter counter = new PPCounter
{
AlwaysPresent = true
};

private partial class PPCounter : PerformancePointsCounter
{
}

[BackgroundDependencyLoader]
private void load(OsuGame game)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ protected override void Update()
base.Update();

var track = Beatmap.Value?.Track;
progress.Current.Value = (track == null || track.Length == 0) ? 0 : (track.CurrentTime / track.Length);
progress.Progress = (track == null || track.Length == 0) ? 0 : (track.CurrentTime / track.Length);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<ItemGroup>
<PackageReference Include="NetCoreServer" Version="6.7.0" />
<PackageReference Include="NLua" Version="1.6.2" />
<PackageReference Include="ppy.osu.Game" Version="2024.131.0" />
<PackageReference Include="ppy.osu.Game" Version="2024.312.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\M.DBus\M.DBus.csproj" />
Expand Down

0 comments on commit 0011e3c

Please sign in to comment.