mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2025-04-22 17:44:06 +00:00
Corrected the conditions for repeating middle textures
This commit is contained in:
parent
27626192fa
commit
48d1fcb4c7
1 changed files with 6 additions and 4 deletions
|
@ -191,13 +191,15 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
CropPoly(ref poly, osd.Ceiling.plane, true);
|
||||
CropPoly(ref poly, osd.Floor.plane, true);
|
||||
|
||||
// Determine if we should repeat the middle texture
|
||||
repeatmidtex = (General.Map.SRB2 && Sidedef.Line.IsFlagSet("1024")) || Sidedef.IsFlagSet("wrapmidtex") || Sidedef.Line.IsFlagSet("wrapmidtex"); //mxd
|
||||
if(!repeatmidtex || (General.Map.SRB2 && Sidedef.OffsetX >= 4096))
|
||||
// Determine if we should repeat the middle texture
|
||||
bool srb2repeat = General.Map.SRB2 && Sidedef.Line.IsFlagSet("1024");
|
||||
repeatmidtex = srb2repeat || Sidedef.IsFlagSet("wrapmidtex") || Sidedef.Line.IsFlagSet("wrapmidtex"); //mxd
|
||||
if(!repeatmidtex || (srb2repeat && Sidedef.OffsetX >= 4096))
|
||||
{
|
||||
// First determine the visible portion of the texture
|
||||
float textop;
|
||||
int repetitions = General.Map.SRB2 ? (Sidedef.OffsetX / 4096) + 1 : 1;
|
||||
//Due to the condition of the if-block, Sidedef.OffsetX >= 4096 automatically holds if srb2repeat does, so we don't have to handle negative offsets here.
|
||||
int repetitions = srb2repeat ? (Sidedef.OffsetX / 4096) + 1 : 1;
|
||||
|
||||
// Determine top portion height
|
||||
if(Sidedef.Line.IsFlagSet(General.Map.Config.LowerUnpeggedFlag))
|
||||
|
|
Loading…
Reference in a new issue