From 81bd0046b6a7e645a0ca084993d8075dc6bf1dcd Mon Sep 17 00:00:00 2001 From: NepDisk Date: Sun, 28 Sep 2025 14:52:28 -0400 Subject: [PATCH] Fix addon rejoins (Closes #131) --- src/d_netfil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/d_netfil.c b/src/d_netfil.c index 5b02d539a..d34fc4d83 100644 --- a/src/d_netfil.c +++ b/src/d_netfil.c @@ -167,7 +167,7 @@ UINT8 *PutFileNeeded(UINT16 firstfile) for (; i < numwadfiles; i++) //mainwads+1, otherwise we start on the first mainwad { // If it has only music/sound lumps, don't put it in the list - if (!wadfiles[i]->important) + if (!wadfiles[i]->important || wadfiles[i]->localfile) continue; if (firstfile) @@ -563,7 +563,7 @@ INT32 CL_CheckFiles(void) // CONS_Printf("checking %d of %d / %d of %d?\n", i, fileneedednum, j, numwadfiles); // CONS_Printf("i: %s / j: %s \n", fileneeded[i].filename, wadfiles[j]->filename); - if (j < numwadfiles && !wadfiles[j]->important && !wadfiles[j]->localfile) + if (j < numwadfiles && (!wadfiles[j]->important || wadfiles[j]->localfile)) { // Unimportant on our side. ++j;