From 82b3549cbeb7ac9b946cfcd85a42ecad6424c25e Mon Sep 17 00:00:00 2001 From: Martin Gerhardy Date: Sun, 15 Dec 2024 20:08:30 +0100 Subject: [PATCH] BSPTOOL: fixed missing padpack.pk3dir for community map validation --- code/tools/bsptool/bsptool.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/tools/bsptool/bsptool.c b/code/tools/bsptool/bsptool.c index f7e69f728..0c8a00baa 100644 --- a/code/tools/bsptool/bsptool.c +++ b/code/tools/bsptool/bsptool.c @@ -304,11 +304,12 @@ static int validateShader(const char *allShaders, const char *shaderName, const char basename[1024]; int len; static const char *ext[] = {"jpg", "png", "tga", NULL}; - const char *searchpaths[] = {"models.pk3dir", "textures.pk3dir", NULL, NULL}; + const char *searchpaths[] = {"models.pk3dir", "textures.pk3dir", NULL, NULL, NULL}; if (mappacktype == WOP_PADPAK) { searchpaths[2] = "padpack.pk3dir"; } else if (mappacktype == WOP_COMMUNITY) { - searchpaths[2] = "mappack.pk3dir"; + searchpaths[2] = "padpack.pk3dir"; + searchpaths[3] = "mappack.pk3dir"; } static const char *subdirs[] = {".", "../wop", "../xmas"};