localfile thing

This commit is contained in:
haya_underscore authored and hayayayay committed 2022-11-12 10:23:45 +08:00
1 parent 7d8a418a61
commit 4a60babf75
3 files changed
+7 -1

No files matched your search

+1 -1
View File
@@ -500,7 +500,7 @@ INT32 CL_CheckFiles(void)
CONS_Debug(DBG_NETPLAY, "game is modified; only doing basic checks\n");
for (i = 0, j = mainwads+1; i < fileneedednum || j < numwadfiles;)
{
if (j < numwadfiles && !wadfiles[j]->important)
if (j < numwadfiles && (!wadfiles[j]->important || wadfiles[j]->localfile))
{
// Unimportant on our side. still don't care.
++j;
+5
View File
@@ -3489,6 +3489,11 @@ UINT16 P_PartialAddWadFile(const char *wadfilename, boolean local)
if (wadfiles[wadnum]->important)
partadd_important = true;
if (local)
wadfiles[wadnum]->localfile = true;
else
wadfiles[wadnum]->localfile = false;
//
// search for sound replacements
+1
View File
@@ -115,6 +115,7 @@ 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