When "MixTexturesFlats" flag is set in a game configuration, textures defined in TEXTURE[S|x] must override "regular" flats (ZDoom behavior).

This commit is contained in:
MaxED 2014-07-07 08:42:46 +00:00
parent 7254c62ee0
commit cee185c757

View file

@ -358,6 +358,10 @@ namespace CodeImp.DoomBuilder.Data
flats.Add(t.Key, t.Value);
flatnames.Add(t.Value.Name);
}
else if (t.Value is HighResImage) //mxd. Textures defined in TEXTURE[S|x] override "regular" flats in ZDoom
{
flats[t.Key] = t.Value;
}
}
// Add flats to textures