Fix regression in repeating midtexture handling.

This commit is contained in:
sphere 2021-03-14 00:16:36 +01:00
parent f60aa6c42f
commit 1f3f0358c7

View file

@ -38,6 +38,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
#region ================== Variables
// TODO: Resolve this while retaining correct behavior
private bool repeatmidtex;
private Plane topclipplane;
private Plane bottomclipplane;
@ -151,7 +152,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
// Determine if we should repeat the middle texture
bool srb2repeat = General.Map.SRB2 && Sidedef.Line.IsFlagSet(General.Map.Config.RepeatMidtextureFlag);
bool doomrepeat = !General.Map.SRB2 && Sidedef.IsFlagSet("wrapmidtex") || Sidedef.Line.IsFlagSet("wrapmidtex");
repeatmidtex = srb2repeat || doomrepeat;
bool repeatmidtex = srb2repeat || doomrepeat;
//A little redundant, but having a separate boolean value for each case makes the code a little more readable
bool srb2repeatfixed = srb2repeat && Sidedef.OffsetX >= 4096;