0
0
Fork 0
mirror of https://git.do.srb2.org/STJr/SRB2.git synced 2025-04-18 16:30:58 +00:00

Merge branch 'w-initfile-bruh' into 'next'

Fix a bug where adding the same mod multiple times counted towards the mod limit

See merge request 
This commit is contained in:
Lachlan Wright 2020-09-25 08:52:22 -04:00
commit 650635e780

View file

@ -777,6 +777,8 @@ UINT16 W_InitFile(const char *filename, boolean mainfile, boolean startup)
if (!memcmp(wadfiles[i]->md5sum, md5sum, 16))
{
CONS_Alert(CONS_ERROR, M_GetText("%s is already loaded\n"), filename);
if (important)
packetsizetally -= nameonlylength(filename) + 22;
if (handle)
fclose(handle);
return W_InitFileError(filename, false);