From ad95d2e06f473a8713340b2426016bc900d2e4fa Mon Sep 17 00:00:00 2001 From: Rangi <35663410+Rangi42@users.noreply.github.com> Date: Mon, 30 Dec 2024 12:58:07 -0500 Subject: [PATCH] Allow deduplicating tiles with neither an input nor output tileset (#1585) --- src/gfx/process.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gfx/process.cpp b/src/gfx/process.cpp index 94a567fa..57b6906b 100644 --- a/src/gfx/process.cpp +++ b/src/gfx/process.cpp @@ -999,10 +999,11 @@ static UniqueTiles dedupTiles( } } + bool inputWithoutOutput = !options.inputTileset.empty() && options.output.empty(); for (auto [tile, attr] : zip(png.visitAsTiles(), attrmap)) { auto [tileID, matchType] = tiles.addTile({tile, palettes[mappings[attr.protoPaletteID]]}); - if (matchType == TileData::NOPE && options.output.empty()) { + if (inputWithoutOutput && matchType == TileData::NOPE) { error( "Tile at (%" PRIu32 ", %" PRIu32 ") is not within the input tileset, and `-o` was not given!",