Skip to content

Commit

Permalink
Fixed ropes
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryMarkle committed Jun 10, 2024
1 parent 0612070 commit 51e35a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Leditor/Printers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1968,7 +1968,7 @@ internal static void DrawPropLayer(int layer, PropDrawMode drawMode, Texture2D?
if (current.type != InitPropType.Rope) continue;

foreach (var point in current.prop.Extras.RopePoints)
DrawCircleV(point * (scale / 16f), 3f, Color.White);
DrawCircleV(point, 3f, Color.White);
}
}

Expand Down
2 changes: 1 addition & 1 deletion Leditor/Serialization/Exporters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ private static string Export((InitPropType type, TileDefinition? tile, (int cate
{ } basic => $"[#renderorder: {basic.RenderOrder}, #seed: {basic.Seed}, #renderTime: {basic.RenderTime}]"
};

var pointsString = string.Join(", ", prop.Extras.RopePoints.Select(point => $"point({point.X*1.25f:0.0000}, {point.Y*1.25f:0.0000})"));
var pointsString = string.Join(", ", prop.Extras.RopePoints.Select(point => $"point({point.X:0.0000}, {point.Y:0.0000})"));

builder.Append($"[#settings: {settingsString}{(type == InitPropType.Rope ? $", #points: [{pointsString}]" : "")}]");

Expand Down

0 comments on commit 51e35a6

Please sign in to comment.