Skip to content

Commit

Permalink
Remove extra dot from custom palette name
Browse files Browse the repository at this point in the history
  • Loading branch information
Rampastring committed Jun 17, 2023
1 parent c267521 commit aadf024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TSMapEditor/Rendering/TheaterGraphics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ public void ReadBuildingTextures(List<BuildingType> buildingTypes)
// Palette override in RA2/YR
Palette palette = buildingType.ArtConfig.TerrainPalette ? theaterPalette : unitPalette;
if (!string.IsNullOrWhiteSpace(buildingType.ArtConfig.Palette))
palette = GetPaletteOrFail(buildingType.ArtConfig.Palette + Theater.FileExtension + ".pal");
palette = GetPaletteOrFail(buildingType.ArtConfig.Palette + Theater.FileExtension[1..] + ".pal");

var shpFile = new ShpFile();
shpFile.ParseFromBuffer(shpData);
Expand Down

0 comments on commit aadf024

Please sign in to comment.