Skip to content

Commit 57f69f2

Browse files
authored
fix: resolve CI errors in ScoreProcessor, BackgroundDataStoreProcessor, DatabasedKeyBindingContainer
1 parent 5dc4c57 commit 57f69f2

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

osu.Game/Database/BackgroundDataStoreProcessor.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ public partial class BackgroundDataStoreProcessor : Component
7979
protected virtual int TimeToSleepDuringGameplay => 30000;
8080

8181
[RequiresUnreferencedCode("Calls processScoresWithMissingStatistics which uses Newtonsoft.Json reflection.")]
82-
protected override void LoadComplete() {
82+
protected override void LoadComplete()
83+
{
8384
base.LoadComplete();
8485

8586
localMetadataSource = new LocalCachedBeatmapMetadataSource(storage);

osu.Game/Input/Bindings/DatabasedKeyBindingContainer.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
using System;
77
using System.Collections.Generic;
8-
using System.Diagnostics.CodeAnalysis;
98
using System.Linq;
109
using osu.Framework.Allocation;
1110
using osu.Framework.Input.Bindings;

osu.Game/Rulesets/Scoring/ScoreProcessor.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,7 @@ public ScoreProcessor(Ruleset ruleset)
215215

216216
Mods.ValueChanged += mods =>
217217
{
218-
var calculator = ruleset.CreateScoreMultiplierCalculator(new ScoreMultiplierContext());
219-
scoreMultiplier = calculator.CalculateFor(mods.NewValue);
218+
updateScoreMultiplier();
220219

221220
// Rebuild the cached array so updateRank() can iterate without any heap allocation.
222221
applicableScoreMods = mods.NewValue.OfType<IApplicableToScoreProcessor>().ToArray();

0 commit comments

Comments
 (0)