AudioEquals method for BeatmapInfo.

This commit is contained in:
Huo Yaoyuan
2016-11-07 21:52:23 +08:00
parent d1f64cfbfc
commit c59cad2478
3 changed files with 11 additions and 10 deletions

View File

@ -221,8 +221,7 @@ namespace osu.Game.Overlays
{
if (playHistoryIndex >= 0)
{
BeatmapInfo stackHead = playHistory[playHistoryIndex];
if (beatmap.BeatmapSet.Path == stackHead.BeatmapSet.Path && beatmap.Metadata.AudioFile == stackHead.Metadata.AudioFile)
if (beatmap.AudioEquals(playHistory[playHistoryIndex]))
return;
if (playHistoryIndex < playHistory.Count - 1)
playHistory.RemoveRange(playHistoryIndex + 1, playHistory.Count - playHistoryIndex - 1);