Introduce private APIRuleset for online ID equality comparison

This commit is contained in:
Salman Ahmed
2022-02-11 08:02:51 +03:00
parent c29cc78853
commit 92e22c57a7
2 changed files with 25 additions and 4 deletions

View File

@ -44,9 +44,6 @@ namespace osu.Game.Rulesets
if (ReferenceEquals(this, other)) return true;
if (other == null) return false;
if (OnlineID >= 0 && other.OnlineID >= 0)
return OnlineID == other.OnlineID;
return ShortName == other.ShortName;
}