mirror of
https://github.com/osukey/osukey.git
synced 2025-05-09 23:57:18 +09:00
Add 20ms delay to release frames.
This commit is contained in:
parent
8737a1b1a5
commit
a1baefe20e
@ -13,6 +13,8 @@ namespace osu.Game.Rulesets.Mania.Replays
|
|||||||
{
|
{
|
||||||
internal class ManiaAutoGenerator : AutoGenerator<ManiaHitObject>
|
internal class ManiaAutoGenerator : AutoGenerator<ManiaHitObject>
|
||||||
{
|
{
|
||||||
|
private const double release_delay = 20;
|
||||||
|
|
||||||
private readonly int availableColumns;
|
private readonly int availableColumns;
|
||||||
|
|
||||||
public ManiaAutoGenerator(Beatmap<ManiaHitObject> beatmap, int availableColumns)
|
public ManiaAutoGenerator(Beatmap<ManiaHitObject> beatmap, int availableColumns)
|
||||||
@ -58,7 +60,7 @@ namespace osu.Game.Rulesets.Mania.Replays
|
|||||||
Replay.Frames.Add(new ReplayFrame(groupTime, activeColumns, null, ReplayButtonState.None));
|
Replay.Frames.Add(new ReplayFrame(groupTime, activeColumns, null, ReplayButtonState.None));
|
||||||
|
|
||||||
// Add the release frames. We can't do this with the loop above because we need activeColumns to be fully populated
|
// Add the release frames. We can't do this with the loop above because we need activeColumns to be fully populated
|
||||||
foreach (var obj in objGroup.GroupBy(h => (h as IHasEndTime)?.EndTime ?? h.StartTime + 1).OrderBy(h => h.Key))
|
foreach (var obj in objGroup.GroupBy(h => (h as IHasEndTime)?.EndTime ?? h.StartTime + release_delay).OrderBy(h => h.Key))
|
||||||
{
|
{
|
||||||
var groupEndTime = obj.Key;
|
var groupEndTime = obj.Key;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user