Replace all legacy ruleset checks with a helper property call

This commit is contained in:
Dean Herbert
2022-03-03 14:08:48 +09:00
parent d4a2645510
commit fab9323707
6 changed files with 14 additions and 8 deletions

View File

@ -7,7 +7,6 @@ using osu.Game.Beatmaps;
using osu.Game.Online.API;
using osu.Game.Online.Rooms;
using osu.Game.Online.Solo;
using osu.Game.Rulesets;
using osu.Game.Scoring;
namespace osu.Game.Screens.Play
@ -32,7 +31,7 @@ namespace osu.Game.Screens.Play
if (beatmapId <= 0)
return null;
if (rulesetId < 0 || rulesetId > ILegacyRuleset.MAX_LEGACY_RULESET_ID)
if (!Ruleset.Value.IsLegacyRuleset)
return null;
return new CreateSoloScoreRequest(beatmapId, rulesetId, Game.VersionHash);