mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 20:53:00 +08:00
Apply two minor fixes from code review
Co-authored-by: Bartłomiej Dach <dach.bartlomiej@gmail.com>
This commit is contained in:
parent
6fe8298152
commit
9969c00ead
@ -113,7 +113,7 @@ namespace osu.Game.Rulesets.Catch.Skinning.Argon
|
|||||||
layers[i].Rotation -=
|
layers[i].Rotation -=
|
||||||
(float)Clock.ElapsedFrameTime
|
(float)Clock.ElapsedFrameTime
|
||||||
* 0.4f * rotationRandomness
|
* 0.4f * rotationRandomness
|
||||||
// Each layer should alternate rotation direction.
|
// Each layer should alternate rotation speed.
|
||||||
* (i % 2 == 1 ? 0.5f : 1);
|
* (i % 2 == 1 ? 0.5f : 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,9 +17,9 @@ namespace osu.Game.Rulesets.Catch.Skinning.Argon
|
|||||||
{
|
{
|
||||||
switch (component)
|
switch (component)
|
||||||
{
|
{
|
||||||
case CatchSkinComponent osuComponent:
|
case CatchSkinComponent catchComponent:
|
||||||
// TODO: Once everything is finalised, consider throwing UnsupportedSkinComponentException on missing entries.
|
// TODO: Once everything is finalised, consider throwing UnsupportedSkinComponentException on missing entries.
|
||||||
switch (osuComponent.Component)
|
switch (catchComponent.Component)
|
||||||
{
|
{
|
||||||
case CatchSkinComponents.HitExplosion:
|
case CatchSkinComponents.HitExplosion:
|
||||||
return new ArgonHitExplosion();
|
return new ArgonHitExplosion();
|
||||||
|
Loading…
Reference in New Issue
Block a user