From f63e9baab42ca9236402703edf08da56f8531562 Mon Sep 17 00:00:00 2001 From: Marco Hladik Date: Tue, 8 Dec 2020 13:14:47 +0100 Subject: [PATCH] vmap: We no longer have the minimap code, so strip the help output for it. --- tools/vmap/help.c | 24 ------------------------ tools/vmap/light.c | 2 +- 2 files changed, 1 insertion(+), 25 deletions(-) diff --git a/tools/vmap/help.c b/tools/vmap/help.c index 8a182a7..4b91e2b 100644 --- a/tools/vmap/help.c +++ b/tools/vmap/help.c @@ -316,28 +316,6 @@ void HelpImport() HelpOptions("Importing lightmaps", 0, 80, import, sizeof(import)/sizeof(struct HelpOption)); } -void HelpMinimap() -{ - struct HelpOption minimap[] = { - {"-minimap ", "Creates a minimap of the BSP, by default writes to `../gfx/filename_mini.tga`"}, - {"-black", "Write the minimap as a black-on-transparency RGBA32 image"}, - {"-boost ", "Sets the contrast boost value (higher values make a brighter image); contrast boost is somewhat similar to gamma, but continuous even at zero"}, - {"-border ", "Sets the amount of border pixels relative to the total image size"}, - {"-gray", "Write the minimap as a white-on-black GRAY8 image"}, - {"-keepaspect", "Ensure the aspect ratio is kept (the minimap is then letterboxed to keep aspect)"}, - {"-minmax ", "Forces specific map dimensions (note: the minimap actually uses these dimensions, scaled to the target size while keeping aspect with centering, and 1/64 of border appended to all sides)"}, - {"-nokeepaspect", "Do not ensure the aspect ratio is kept (makes it easier to use the image in your code, but looks bad together with sharpening)"}, - {"-o ", "Sets the output file name"}, - {"-random ", "Sets the randomized supersampling count (cannot be combined with `-samples`)"}, - {"-samples ", "Sets the ordered supersampling count (cannot be combined with `-random`)"}, - {"-sharpen ", "Sets the sharpening coefficient"}, - {"-size ", "Sets the width and height of the output image"}, - {"-white", "Write the minimap as a white-on-transparency RGBA32 image"}, - }; - - HelpOptions("MiniMap", 0, 80, minimap, sizeof(minimap)/sizeof(struct HelpOption)); -} - void HelpCommon() { struct HelpOption common[] = { @@ -380,7 +358,6 @@ void HelpMain(const char* arg) {"-fixaas", "Fixing AAS checksum"}, {"-info", "Get info about BSP file"}, {"-import", "Importing lightmaps"}, - {"-minimap", "MiniMap"}, }; void(*help_funcs[])() = { HelpBsp, @@ -394,7 +371,6 @@ void HelpMain(const char* arg) HelpFixaas, HelpInfo, HelpImport, - HelpMinimap, }; if ( arg && strlen(arg) > 0 ) diff --git a/tools/vmap/light.c b/tools/vmap/light.c index 7662360..fd1caa7 100644 --- a/tools/vmap/light.c +++ b/tools/vmap/light.c @@ -1811,7 +1811,7 @@ void TraceGrid( int num ){ } /* fallback */ - else{ + else { j = 0; } }