mirror of
https://github.com/ppy/osu.git
synced 2025-01-19 14:23:14 +08:00
Remove max
This commit is contained in:
parent
4f09f30b7a
commit
d330b39db4
@ -1,7 +1,6 @@
|
||||
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
@ -36,7 +35,7 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
foreach (var h in objects)
|
||||
{
|
||||
var endTime = Math.Max((h as IHasEndTime)?.EndTime ?? h.StartTime, h.StartTime);
|
||||
var endTime = (h as IHasEndTime)?.EndTime ?? h.StartTime;
|
||||
|
||||
Debug.Assert(endTime >= h.StartTime);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user