From 0a6a40741b35b7ab00a733f8bdb2f65be7ad049c Mon Sep 17 00:00:00 2001 From: Indev Date: Fri, 12 Jan 2024 14:55:40 +0300 Subject: [PATCH] Don't reload addfilelocal'd files if md5 matches --- src/w_wad.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/w_wad.c b/src/w_wad.c index 6739d7824..4989f497b 100644 --- a/src/w_wad.c +++ b/src/w_wad.c @@ -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