mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Advise on how to use -x to make -r work (#1459)
This commit is contained in:
@@ -172,6 +172,15 @@ void reverse() {
|
|||||||
options.verbosePrint(Options::VERB_INTERM, "Picked reversing width of %zu tiles\n", width);
|
options.verbosePrint(Options::VERB_INTERM, "Picked reversing width of %zu tiles\n", width);
|
||||||
}
|
}
|
||||||
if (mapSize % width != 0) {
|
if (mapSize % width != 0) {
|
||||||
|
if (options.trim == 0 && !tilemap) {
|
||||||
|
fatal(
|
||||||
|
"Total number of tiles (%zu) cannot be divided by image width (%zu tiles)\n"
|
||||||
|
"(To proceed anyway with this image width, try passing `-x %zu`)",
|
||||||
|
mapSize,
|
||||||
|
width,
|
||||||
|
width - mapSize % width
|
||||||
|
);
|
||||||
|
}
|
||||||
fatal(
|
fatal(
|
||||||
"Total number of tiles (%zu) cannot be divided by image width (%zu tiles)",
|
"Total number of tiles (%zu) cannot be divided by image width (%zu tiles)",
|
||||||
mapSize,
|
mapSize,
|
||||||
|
|||||||
Reference in New Issue
Block a user