Improve vector conditional

This commit is contained in:
Dean Herbert 2018-02-26 16:11:26 +09:00
parent b9b5d00096
commit 1218a75b7f

View File

@ -113,7 +113,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
Size = Body.Size;
OriginPosition = Body.PathOffset;
if (DrawSize.X > 0 && DrawSize.Y > 0)
if (DrawSize != Vector2.Zero)
{
var childAnchorPosition = Vector2.Divide(OriginPosition, DrawSize);
foreach (var obj in NestedHitObjects)