mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Fix inverted condition in tile dedup warning
This commit is contained in:
@@ -83,7 +83,7 @@ void reverse() {
|
|||||||
fatal("Tile data must be provided when reversing an image!");
|
fatal("Tile data must be provided when reversing an image!");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!options.allowDedup && options.tilemap.empty()) {
|
if (options.allowDedup && options.tilemap.empty()) {
|
||||||
warning("Tile deduplication is enabled, but no tilemap is provided?");
|
warning("Tile deduplication is enabled, but no tilemap is provided?");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -126,14 +126,14 @@ void reverse() {
|
|||||||
fatal(
|
fatal(
|
||||||
"No input slice specified (`-L`), and specified image width (%zu) not a multiple of 8",
|
"No input slice specified (`-L`), and specified image width (%zu) not a multiple of 8",
|
||||||
usefulWidth);
|
usefulWidth);
|
||||||
} else {
|
}
|
||||||
width = usefulWidth / 8;
|
width = usefulWidth / 8;
|
||||||
if (nbTileInstances % width != 0) {
|
if (nbTileInstances % width != 0) {
|
||||||
fatal("Total number of tiles read (%zu) cannot be divided by image width (%zu tiles)",
|
fatal("Total number of tiles read (%zu) cannot be divided by image width (%zu tiles)",
|
||||||
nbTileInstances, width);
|
nbTileInstances, width);
|
||||||
}
|
}
|
||||||
height = nbTileInstances / width;
|
height = nbTileInstances / width;
|
||||||
}
|
|
||||||
options.verbosePrint(Options::VERB_INTERM, "Reversed image dimensions: %zux%zu tiles\n", width,
|
options.verbosePrint(Options::VERB_INTERM, "Reversed image dimensions: %zux%zu tiles\n", width,
|
||||||
height);
|
height);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user