Don't reload addfilelocal'd files if md5 matches

This commit is contained in:
indev committed 2024-01-12 14:55:40 +03:00
1 parent b7ffaf4243
commit 0a6a40741b
1 file changed
+4 -7
+4 -7
View File
@@ -769,13 +769,10 @@ UINT16 W_InitFile(const char *filename, const char *lumpname, UINT16 *wadnump, b
{
if (!memcmp(wadfiles[i]->md5sum, md5sum, 16))
{
if (!local) {
CONS_Alert(CONS_ERROR, M_GetText("%s is already loaded\n"), filename);
if (handle)
fclose(handle);
return INT16_MAX;
}
CONS_Alert(CONS_WARNING, M_GetText("%s is a local skin that is already loaded\n"), filename);
CONS_Alert(CONS_ERROR, M_GetText("%s is already loaded\n"), filename);
if (handle)
fclose(handle);
return INT16_MAX;
}
}
#endif