mirror of
https://github.com/ppy/osu.git
synced 2024-11-13 22:07:25 +08:00
Fix incorrect end date usage in timeshift ready button
This commit is contained in:
parent
6efe24695b
commit
19db35501e
@ -13,7 +13,7 @@ namespace osu.Game.Screens.Multi.Timeshift
|
|||||||
public class TimeshiftReadyButton : ReadyButton
|
public class TimeshiftReadyButton : ReadyButton
|
||||||
{
|
{
|
||||||
[Resolved(typeof(Room), nameof(Room.EndDate))]
|
[Resolved(typeof(Room), nameof(Room.EndDate))]
|
||||||
private Bindable<DateTimeOffset?> endDate { get; set; }
|
private Bindable<DateTimeOffset> endDate { get; set; }
|
||||||
|
|
||||||
public TimeshiftReadyButton()
|
public TimeshiftReadyButton()
|
||||||
{
|
{
|
||||||
@ -32,7 +32,7 @@ namespace osu.Game.Screens.Multi.Timeshift
|
|||||||
{
|
{
|
||||||
base.Update();
|
base.Update();
|
||||||
|
|
||||||
Enabled.Value = endDate.Value == null || DateTimeOffset.UtcNow.AddSeconds(30).AddMilliseconds(GameBeatmap.Value.Track.Length) < endDate.Value;
|
Enabled.Value = DateTimeOffset.UtcNow.AddSeconds(30).AddMilliseconds(GameBeatmap.Value.Track.Length) < endDate.Value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user