Skip to content

Commit

Permalink
BSPTOOL: fixed missing padpack.pk3dir for community map validation
Browse files Browse the repository at this point in the history
  • Loading branch information
mgerhardy committed Dec 15, 2024
1 parent a31ec04 commit 82b3549
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions code/tools/bsptool/bsptool.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"};
Expand Down

0 comments on commit 82b3549

Please sign in to comment.