From f13dfcb5f694d594f84f24fdc1a5674d500e2f65 Mon Sep 17 00:00:00 2001 From: Stoabrogga Date: Fri, 10 Jul 2026 12:39:07 +0000 Subject: [PATCH] Add new option for map extractor (#3480) `-h` allow to limit minimum height (less map size) 1 by default --- contrib/extractor/System.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/contrib/extractor/System.cpp b/contrib/extractor/System.cpp index 9311ce866..829634655 100644 --- a/contrib/extractor/System.cpp +++ b/contrib/extractor/System.cpp @@ -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 {