Skip to content

Commit

Permalink
exclude larger bmodels (ex. authmdl) in map filelist
Browse files Browse the repository at this point in the history
  • Loading branch information
timbergeron committed Feb 19, 2024
1 parent 2b2dee3 commit 7b7804c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Quake/host_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,10 @@ void ExtraMaps_Init (void)
{
if (!strcmp(COM_FileGetExtension(pak->files[i].name), "bsp"))
{
if (pak->files[i].filelen > 32*1024)
{ // don't list files under 32k (ammo boxes etc)
COM_StripExtension(pak->files[i].name + 5, mapname, sizeof(mapname));
COM_StripExtension(pak->files[i].name + 5, mapname, sizeof(mapname));

if (pak->files[i].filelen > 32*1024 && !isSpecialMap(mapname))
{ // don't list files under 32k (ammo boxes etc) or certain names (ex. authmdl are larger) -- woods
ExtraMaps_Add (mapname);
}
}
Expand Down

0 comments on commit 7b7804c

Please sign in to comment.