mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2025-03-04 00:21:44 +00:00
Fix regression in repeating midtexture handling.
This commit is contained in:
parent
f60aa6c42f
commit
1f3f0358c7
1 changed files with 2 additions and 1 deletions
|
@ -38,6 +38,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
|
|
||||||
#region ================== Variables
|
#region ================== Variables
|
||||||
|
|
||||||
|
// TODO: Resolve this while retaining correct behavior
|
||||||
private bool repeatmidtex;
|
private bool repeatmidtex;
|
||||||
private Plane topclipplane;
|
private Plane topclipplane;
|
||||||
private Plane bottomclipplane;
|
private Plane bottomclipplane;
|
||||||
|
@ -151,7 +152,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
// Determine if we should repeat the middle texture
|
// Determine if we should repeat the middle texture
|
||||||
bool srb2repeat = General.Map.SRB2 && Sidedef.Line.IsFlagSet(General.Map.Config.RepeatMidtextureFlag);
|
bool srb2repeat = General.Map.SRB2 && Sidedef.Line.IsFlagSet(General.Map.Config.RepeatMidtextureFlag);
|
||||||
bool doomrepeat = !General.Map.SRB2 && Sidedef.IsFlagSet("wrapmidtex") || Sidedef.Line.IsFlagSet("wrapmidtex");
|
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
|
//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;
|
bool srb2repeatfixed = srb2repeat && Sidedef.OffsetX >= 4096;
|
||||||
|
|
Loading…
Reference in a new issue