mirror of
https://github.com/vmangos/core
synced 2026-08-14 16:29:10 -04:00
Add new option for map extractor (#3480)
`-h` allow to limit minimum height (less map size) 1 by default
This commit is contained in:
parent
1cf3d46221
commit
f13dfcb5f6
1 changed files with 7 additions and 0 deletions
|
|
@ -138,6 +138,7 @@ void Usage(char* prg)
|
|||
"-o set output path\n"\
|
||||
"-e extract only MAP(1)/DBC(2)/Camera(4) - standard: all(7)\n"\
|
||||
"-f height stored as int (less map size but lost some accuracy) 1 by default\n"\
|
||||
"-h allow to limit minimum height (less map size) 1 by default\n"\
|
||||
"--silent skip all interactive prompts (for scripted runs)\n"\
|
||||
"Example: %s -f 0 -i \"c:\\games\\game\"", prg, prg);
|
||||
exit(1);
|
||||
|
|
@ -181,6 +182,12 @@ void HandleArgs(int argc, char* arg[])
|
|||
else
|
||||
Usage(arg[0]);
|
||||
break;
|
||||
case 'h':
|
||||
if (c + 1 < argc) // all ok
|
||||
CONF_allow_height_limit = atoi(arg[(c++) + 1]) != 0;
|
||||
else
|
||||
Usage(arg[0]);
|
||||
break;
|
||||
case 'e':
|
||||
if (c + 1 < argc) // all ok
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue