From 06120708f6369d3fa3ad05c415f674e4aa7b9336 Mon Sep 17 00:00:00 2001 From: HenryMarkle Date: Tue, 11 Jun 2024 02:05:32 +0300 Subject: [PATCH] Rope segment fix --- .github/workflows/main.yml | 2 +- Leditor/Globals.cs | 2 +- Leditor/Serialization/Exporters.cs | 2 +- Release_Notes.txt | 8 +++----- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index faa6ce2..61c540c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -143,7 +143,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: v${{ github.run_number }} - release_name: Release v0.9.90-2 + release_name: Release v0.9.90-4 body: ${{ steps.read_release_notes.outputs.notes }} draft: false prerelease: false diff --git a/Leditor/Globals.cs b/Leditor/Globals.cs index 43228d1..6954bae 100644 --- a/Leditor/Globals.cs +++ b/Leditor/Globals.cs @@ -183,7 +183,7 @@ internal static string AssetsDirectory { internal static System.Timers.Timer AutoSaveTimer = new(30_000); - internal const string Version = "Henry's Leditor v0.9.90-2"; + internal const string Version = "Henry's Leditor v0.9.90-4"; internal const string RaylibVersion = "Raylib v5.0.0"; internal static string BuildConfiguration { get; set; } = "Build Configuration: Unknown"; internal static string OperatingSystem { get; set; } = "Operating System: Unknown"; diff --git a/Leditor/Serialization/Exporters.cs b/Leditor/Serialization/Exporters.cs index 575b68c..27b4e2f 100644 --- a/Leditor/Serialization/Exporters.cs +++ b/Leditor/Serialization/Exporters.cs @@ -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:0.0000})")); + var pointsString = string.Join(", ", prop.Extras.RopePoints.Select(point => $"point({point.X*1.25f:0.0000}, {point.Y*1.25f:0.0000})")); builder.Append($"[#settings: {settingsString}{(type == InitPropType.Rope ? $", #points: [{pointsString}]" : "")}]"); diff --git a/Release_Notes.txt b/Release_Notes.txt index 09294b3..318c8ee 100644 --- a/Release_Notes.txt +++ b/Release_Notes.txt @@ -1,7 +1,5 @@ -### Revision 0.9.90-2 +### Revision 0.9.90-4 - Fixed a crash that occurs when more than one texture share the same name. - -### Revision 0.9.90-3 - -- Fixed not being able to delete tiles when their head has -1 spec. \ No newline at end of file +- Fixed not being able to delete tiles when their head has -1 spec. +- Fixed rope segment coordinates not scaling properly. \ No newline at end of file