Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryMarkle committed Jun 19, 2024
1 parent aa88c76 commit d2d169c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ github.run_number }}
release_name: Release v0.9.93-6
release_name: Release v0.9.93-7
body: ${{ steps.read_release_notes.outputs.notes }}
draft: false
prerelease: false
Expand Down
2 changes: 1 addition & 1 deletion Leditor/Globals.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.93-6";
internal const string Version = "Henry's Leditor v0.9.93-7";
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";
Expand Down
35 changes: 13 additions & 22 deletions Leditor/Printers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1789,7 +1789,7 @@ internal static void DrawLevelIntoBuffer(in RenderTexture2D texture, DrawLevelPa
parameters.TileDrawMode,
(byte)(parameters.HighLayerContrast ? 60 : 255),
true,
true,
parameters.CropTilePrevious,
parameters.VisibleStrayTileFragments
);
EndTextureMode();
Expand Down Expand Up @@ -1923,7 +1923,7 @@ internal static void DrawLevelIntoBuffer(in RenderTexture2D texture, DrawLevelPa
parameters.TileDrawMode,
(byte)(parameters.HighLayerContrast ? 70 : 255),
true,
true,
parameters.CropTilePrevious,
parameters.VisibleStrayTileFragments
);
EndTextureMode();
Expand Down Expand Up @@ -2072,26 +2072,17 @@ internal static void DrawLevelIntoBuffer(in RenderTexture2D texture, DrawLevelPa

} else {
BeginTextureMode(texture);
if (parameters.HighLayerContrast) {
DrawTileLayer(
parameters.CurrentLayer,
0,
parameters.Scale,
false,
parameters.TileDrawMode,
70
);
} else {
DrawTileLayer(
parameters.CurrentLayer,
0,
parameters.Scale,
false,
parameters.TileDrawMode,
255,
visibleStrays: parameters.VisibleStrayTileFragments
);
}
DrawTileLayer(
parameters.CurrentLayer,
0,
parameters.Scale,
false,
parameters.TileDrawMode,
(byte)(parameters.HighLayerContrast ? 70 : 255),
true,
parameters.CropTilePrevious,
parameters.VisibleStrayTileFragments
);
EndTextureMode();
}
}
Expand Down
2 changes: 1 addition & 1 deletion Release_Notes.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
- Bathives can be placed on the third layer.
- Fixed cropping tile preview textures checkbox.

0 comments on commit d2d169c

Please sign in to comment.