mirror of
https://github.com/minetest/minetestmapper.git
synced 2025-07-01 08:00:22 +02:00
Add a flag to never output empty images.
This commit is contained in:
@ -24,6 +24,7 @@ void usage()
|
||||
" --draworigin\n"
|
||||
" --drawalpha\n"
|
||||
" --noshading\n"
|
||||
" --noemptyimage\n"
|
||||
" --min-y <y>\n"
|
||||
" --max-y <y>\n"
|
||||
" --backend <backend>\n"
|
||||
@ -87,6 +88,7 @@ int main(int argc, char *argv[])
|
||||
{"zoom", required_argument, 0, 'z'},
|
||||
{"colors", required_argument, 0, 'C'},
|
||||
{"scales", required_argument, 0, 'f'},
|
||||
{"noemptyimage", no_argument, 0, 'n'},
|
||||
{0, 0, 0, 0}
|
||||
};
|
||||
|
||||
@ -195,6 +197,9 @@ int main(int argc, char *argv[])
|
||||
case 'C':
|
||||
colors = optarg;
|
||||
break;
|
||||
case 'n':
|
||||
generator.setDontWriteEmpty(true);
|
||||
break;
|
||||
default:
|
||||
exit(1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user