i keep thinking the corner offsets should be minus

This commit is contained in:
Ozzatron committed 2020-10-19 17:58:31 -04:00
1 parent 29f2744aab
commit b495c121d4
1 file changed
+6 -6
+6 -6
View File
@@ -74,18 +74,18 @@ namespace CalamityMod.Schematics
switch (anchorType)
{
case PlacementAnchorType.TopRight:
cornerX -= width;
cornerX += width;
break;
case PlacementAnchorType.Center:
cornerX -= width / 2;
cornerY -= height / 2;
cornerX += width / 2;
cornerY += height / 2;
break;
case PlacementAnchorType.BottomLeft:
cornerY -= height;
cornerY += height;
break;
case PlacementAnchorType.BottomRight:
cornerX -= width;
cornerY -= height;
cornerX += width;
cornerY += height;
break;
case PlacementAnchorType.TopLeft:
default: