We should copy middle texture to upper/lower parts regardless of whether they are actually required when AutoClearSidedefTextures is disabled, I suppose (aaaaand there was a logic error there).

This commit is contained in:
MaxED 2014-01-08 09:59:57 +00:00
parent a91c0b9cd2
commit c561617704

View file

@ -358,7 +358,7 @@ namespace CodeImp.DoomBuilder.Map
internal void ShiftTextures() {
BeforePropsChange();
if(string.IsNullOrEmpty(texnamehigh) || texnamehigh == "-" && HighRequired()) {
if((string.IsNullOrEmpty(texnamehigh) || texnamehigh == "-") && (!General.Settings.AutoClearSidedefTextures || HighRequired())) {
if(General.Map.Options.OverrideTopTexture) {
texnamehigh = General.Map.Options.DefaultTopTexture;
longtexnamehigh = Lump.MakeLongName(texnamehigh);
@ -368,7 +368,7 @@ namespace CodeImp.DoomBuilder.Map
}
}
if(string.IsNullOrEmpty(texnamelow) || texnamelow == "-" && LowRequired()) {
if((string.IsNullOrEmpty(texnamelow) || texnamelow == "-") && (!General.Settings.AutoClearSidedefTextures || LowRequired())) {
if(General.Map.Options.OverrideBottomTexture) {
texnamelow = General.Map.Options.DefaultBottomTexture;
longtexnamelow = Lump.MakeLongName(texnamelow);