remove localfile from wadfile struct

this was a leftover from localskins
we check for the "important" flag instead
This commit is contained in:
Alug committed 2025-09-28 07:38:03 +02:00
1 parent 8659d2099a
commit 129e927da1
3 files changed
+1 -4

No files matched your search

+1 -1
View File
@@ -509,7 +509,7 @@ INT32 CL_CheckFiles(void)
for (i = 0, j = mainwads+1; i < fileneedednum || j < numwadfiles;)
{
if (j < numwadfiles && (!wadfiles[j]->important || wadfiles[j]->localfile))
if (j < numwadfiles && !wadfiles[j]->important) // TODO: add checks for localfiles that dont contain anything "allowed" (maps and stuff like that)
{
// Unimportant on our side. still don't care.
++j;
-2
View File
@@ -3171,8 +3171,6 @@ UINT16 P_PartialAddWadFile(const char *wadfilename, boolean local)
if (wadfiles[wadnum]->important)
partadd_important = true;
wadfiles[wadnum]->localfile = local;
lumpinfo = wadfiles[wadnum]->lumpinfo;
for (i = 0; i < numlumps; i++, lumpinfo++)
{
-1
View File
@@ -145,7 +145,6 @@ typedef struct wadfile_s
UINT8 md5sum[16];
boolean important;
boolean majormod;
boolean localfile; // only for skins
} wadfile_t;
#define WADFILENUM(lumpnum) (UINT16)((lumpnum)>>16) // wad flumpnum>>16) // wad file number in upper word