In PK3s, look for patches in the same directories as ZDoom.

This commit is contained in:
MascaraSnake 2017-08-07 15:00:48 +02:00
parent 33af08b1d6
commit ba2cc9e0a9
2 changed files with 2 additions and 2 deletions

View file

@ -89,7 +89,7 @@ namespace CodeImp.DoomBuilder.Data
pname = pname.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar);
return (FileExists(pname) ? LoadFile(pname) : null);
}
else if(General.Map.Config.MixTexturesFlats)
else if(General.Map.Config.MixTexturesFlats || General.Map.SRB2)
{
//mxd. Find in directories ZDoom expects them to be
string dir = Path.GetDirectoryName(pname);

View file

@ -164,7 +164,7 @@ namespace CodeImp.DoomBuilder.Data
return (FileExists(pname) ? LoadFile(pname) : null);
}
if(General.Map.Config.MixTexturesFlats)
if(General.Map.Config.MixTexturesFlats || General.Map.SRB2)
{
//mxd. Find in directories ZDoom expects them to be
foreach(string loc in PatchLocations)