Skip to content

Commit

Permalink
Merge pull request #26069 from peppy/fix-legacy-version-checks
Browse files Browse the repository at this point in the history
Change legacy version checks to account for users specifying incorrect versions
  • Loading branch information
smoogipoo committed Dec 23, 2023
2 parents 807ea8a + c5893f2 commit 0db2668
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ private void updateStateTransforms(DrawableHitObject drawableHitObject, ArmedSta
{
decimal? legacyVersion = skin.GetConfig<SkinConfiguration.LegacySetting, decimal>(SkinConfiguration.LegacySetting.Version)?.Value;

if (legacyVersion >= 2.0m)
if (legacyVersion > 1.0m)
// legacy skins of version 2.0 and newer only apply very short fade out to the number piece.
hitCircleText.FadeOut(legacy_fade_duration / 4);
else
Expand Down
2 changes: 1 addition & 1 deletion osu.Game/Skinning/LegacyJudgementPieceOld.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public virtual void PlayAnimation()

decimal? legacyVersion = skin.GetConfig<SkinConfiguration.LegacySetting, decimal>(SkinConfiguration.LegacySetting.Version)?.Value;

if (legacyVersion >= 2.0m)
if (legacyVersion > 1.0m)
{
this.MoveTo(new Vector2(0, -5));
this.MoveToOffset(new Vector2(0, 80), fade_out_delay + fade_out_length, Easing.In);
Expand Down

0 comments on commit 0db2668

Please sign in to comment.