Forgot to check if the file was important, whoops!
This commit is contained in:
parent
2c5f23bacb
commit
d15be1696a
|
@ -776,6 +776,7 @@ UINT16 W_InitFile(const char *filename, boolean mainfile, boolean startup)
|
||||||
if (!memcmp(wadfiles[i]->md5sum, md5sum, 16))
|
if (!memcmp(wadfiles[i]->md5sum, md5sum, 16))
|
||||||
{
|
{
|
||||||
CONS_Alert(CONS_ERROR, M_GetText("%s is already loaded\n"), filename);
|
CONS_Alert(CONS_ERROR, M_GetText("%s is already loaded\n"), filename);
|
||||||
|
if (important)
|
||||||
packetsizetally -= nameonlylength(filename) + 22;
|
packetsizetally -= nameonlylength(filename) + 22;
|
||||||
if (handle)
|
if (handle)
|
||||||
fclose(handle);
|
fclose(handle);
|
||||||
|
|
Loading…
Reference in New Issue