fix not reading doom2-all/, doom1-all/ autoload directories (#2128)

Closes #2127

Co-authored-by: Fabian Greffrath <fabian@greffrath.com>
This commit is contained in:
elf-alchemist 2025-01-07 13:02:56 -03:00 committed by GitHub
parent a4b08b7152
commit afd3ac8686
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1393,6 +1393,15 @@ static void LoadIWadBase(void)
{
W_AddBaseDir("doom-all");
}
if (local_gamemission == doom)
{
W_AddBaseDir("doom1-all");
}
else if (local_gamemission >= doom2
&& local_gamemission <= pack_plut)
{
W_AddBaseDir("doom2-all");
}
W_AddBaseDir(M_BaseName(wadfiles[0]));
}