Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff

This commit is contained in:
Alug committed 2024-04-22 05:26:36 +02:00
commit 2afad9490e
1 file changed
+1 -5
+1 -5
View File
@@ -4076,16 +4076,12 @@ static const char *locateWad(void)
#endif
#ifndef NOHOME
// find in $HOME
I_OutputMsg(",HOME/" DEFAULTDIR);
I_OutputMsg(",HOME");
if ((envstr = I_GetEnv("HOME")) != NULL)
{
char *tmp = malloc(strlen(envstr) + sizeof(DEFAULTDIR));
strcpy(tmp, envstr);
strcat(tmp, DEFAULTDIR);
WadPath = searchWad(envstr);
if (WadPath)
return WadPath;
free(tmp);
}
#endif
#ifdef DEFAULTSEARCHPATH1