mirror of https://github.com/ppy/osu
Use key offsets instead of cast
This commit is contained in:
parent
8e63c17536
commit
12a1889fac
|
@ -38,11 +38,11 @@ protected override void GenerateFrames()
|
||||||
switch (point)
|
switch (point)
|
||||||
{
|
{
|
||||||
case HitPoint:
|
case HitPoint:
|
||||||
actions.Add((ManiaAction)point.Column);
|
actions.Add(ManiaAction.Key1 + point.Column);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ReleasePoint:
|
case ReleasePoint:
|
||||||
actions.Remove((ManiaAction)point.Column);
|
actions.Remove(ManiaAction.Key1 + point.Column);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue