1
0
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:
Dean Herbert 2022-10-28 10:19:53 +09:00 committed by GitHub
parent 6fe8298152
commit 9969c00ead
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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);
} }
} }

View File

@ -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();