From 56292bd7f0b1ee64a5fe7d24af2f36f47d1c98c1 Mon Sep 17 00:00:00 2001 From: smoogipooo Date: Wed, 23 Aug 2017 16:54:06 +0900 Subject: [PATCH] Use constant definition. --- osu.Game.Rulesets.Osu/Mods/OsuMod.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/osu.Game.Rulesets.Osu/Mods/OsuMod.cs b/osu.Game.Rulesets.Osu/Mods/OsuMod.cs index 6bc9f868ac..432c6d391c 100644 --- a/osu.Game.Rulesets.Osu/Mods/OsuMod.cs +++ b/osu.Game.Rulesets.Osu/Mods/OsuMod.cs @@ -10,6 +10,7 @@ using System; using System.Collections.Generic; using System.Linq; using osu.Framework.Extensions.IEnumerableExtensions; +using osu.Game.Rulesets.Osu.UI; using osu.Game.Rulesets.Scoring; using osu.Game.Rulesets.UI; using OpenTK; @@ -39,11 +40,11 @@ namespace osu.Game.Rulesets.Osu.Mods public void ApplyToRulesetContainer(RulesetContainer rulesetContainer) { - rulesetContainer.Objects.OfType().ForEach(h => h.Position = new Vector2(h.Position.X, 384 - h.Y)); + rulesetContainer.Objects.OfType().ForEach(h => h.Position = new Vector2(h.Position.X, OsuPlayfield.BASE_SIZE.Y - h.Y)); rulesetContainer.Objects.OfType().ForEach(s => { var newControlPoints = new List(); - s.ControlPoints.ForEach(c => newControlPoints.Add(new Vector2(c.X, 384 - c.Y))); + s.ControlPoints.ForEach(c => newControlPoints.Add(new Vector2(c.X, OsuPlayfield.BASE_SIZE.Y - c.Y))); s.ControlPoints = newControlPoints; s.Curve?.Calculate(); // Recalculate the slider curve