Use key offsets instead of cast

This commit is contained in:
Dan Balasescu 2024-08-13 14:03:26 +09:00
parent 8e63c17536
commit 12a1889fac
No known key found for this signature in database

View File

@ -38,11 +38,11 @@ namespace osu.Game.Rulesets.Mania.Replays
switch (point)
{
case HitPoint:
actions.Add((ManiaAction)point.Column);
actions.Add(ManiaAction.Key1 + point.Column);
break;
case ReleasePoint:
actions.Remove((ManiaAction)point.Column);
actions.Remove(ManiaAction.Key1 + point.Column);
break;
}
}