1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-16 05:42:54 +08:00

Add some warning comments.

This commit is contained in:
Dean Herbert 2016-10-28 23:35:49 +09:00
parent 42ad96778e
commit f0e4a252a5

View File

@ -166,6 +166,9 @@ namespace osu.Game.GameModes.Play
{ {
} }
/// <summary>
/// The global Beatmap was changed.
/// </summary>
protected override void OnBeatmapChanged(WorkingBeatmap beatmap) protected override void OnBeatmapChanged(WorkingBeatmap beatmap)
{ {
base.OnBeatmapChanged(beatmap); base.OnBeatmapChanged(beatmap);
@ -177,6 +180,7 @@ namespace osu.Game.GameModes.Play
if (beatmap.Equals(selectedBeatmapInfo)) if (beatmap.Equals(selectedBeatmapInfo))
return; return;
//this is VERY temporary logic.
beatmapSetFlow.Children.Cast<BeatmapGroup>().First(b => beatmapSetFlow.Children.Cast<BeatmapGroup>().First(b =>
{ {
var panel = b.BeatmapPanels.FirstOrDefault(p => p.Beatmap.Equals(beatmap)); var panel = b.BeatmapPanels.FirstOrDefault(p => p.Beatmap.Equals(beatmap));