Visual Mode: Invert Lower Unpegged behavior for non-skewed FOFs to match SRB2.

This commit is contained in:
sphere 2021-10-25 20:43:49 +02:00
parent b95dcc21b0
commit 77bed468a1

View file

@ -174,10 +174,11 @@ namespace CodeImp.DoomBuilder.BuilderModes
tlt.x = tlb.x = 0;
trt.x = trb.x = Sidedef.Line.Length;
tlt.y = IsLowerUnpegged() ? 0 : -(topheight - bottomheight);
trt.y = IsLowerUnpegged() ? 0 : -(topheight2 - bottomheight2);
tlb.y = !IsLowerUnpegged() ? 0 : (topheight - bottomheight);
trb.y = !IsLowerUnpegged() ? 0 : (topheight2 - bottomheight2);
// For SRB2, invert Lower Unpegged behavior for non-skewed 3D floors
tlt.y = !(IsLowerUnpegged() ^ skew) ? 0 : -(topheight - bottomheight);
trt.y = !(IsLowerUnpegged() ^ skew) ? 0 : -(topheight2 - bottomheight2);
tlb.y = !(!IsLowerUnpegged() ^ skew) ? 0 : (topheight - bottomheight);
trb.y = !(!IsLowerUnpegged() ^ skew) ? 0 : (topheight2 - bottomheight2);
// Apply texture offset
tlt += tof;