Fix icon smoothing on rotated grid

This commit is contained in:
metalgearsloth
2021-09-05 17:23:47 +10:00
parent 53b53c3e0e
commit c5a0b18be1

View File

@@ -239,7 +239,8 @@ namespace Content.Client.IconSmoothing
cornerNW |= CornerFill.Diagonal;
}
switch (Owner.Transform.WorldRotation.GetCardinalDir())
// Local is fine as we already know it's parented to the grid (due to the way anchoring works).
switch (Owner.Transform.LocalRotation.GetCardinalDir())
{
case Direction.North:
return (cornerSW, cornerSE, cornerNE, cornerNW);