Revert some unnecessary complications in logo logic

This commit is contained in:
Dean Herbert
2019-02-12 13:29:41 +09:00
parent 272584eb79
commit d5cce850a8
2 changed files with 19 additions and 11 deletions

View File

@ -179,6 +179,15 @@ namespace osu.Game.Screens.Multi.Match
CurrentItem.BindValueChanged(currentItemChanged, true);
}
public override bool OnExiting(IScreen next)
{
RoomManager?.PartRoom();
return base.OnExiting(next);
}
/// <summary>
/// Handles propagation of the current playlist item's content to game-wide mechanisms.
/// </summary>
private void currentItemChanged(PlaylistItem item)
{
// Retrieve the corresponding local beatmap, since we can't directly use the playlist's beatmap info
@ -190,12 +199,6 @@ namespace osu.Game.Screens.Multi.Match
Ruleset.Value = item.Ruleset;
}
public override bool OnExiting(IScreen next)
{
RoomManager?.PartRoom();
return base.OnExiting(next);
}
/// <summary>
/// Handle the case where a beatmap is imported (and can be used by this match).
/// </summary>