Aligning textures on the X axis now works correctly with negative scale values when world panning is not enabled.

This commit is contained in:
biwa 2020-03-29 12:49:05 +02:00
parent adf95c2566
commit 3f4a0a0e23

View file

@ -4286,7 +4286,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
backwardoffset = j.offsetx;
if(!worldpanning)
forwardoffset = (float)Math.Round((j.offsetx + (float)Math.Round(j.sidedef.Line.Length) / scalex * first.scaleX) % vwidth, General.Map.FormatInterface.VertexDecimals);
forwardoffset = (float)Math.Round((j.offsetx + (float)Math.Round(j.sidedef.Line.Length) / scalex * Math.Abs(first.scaleX)) % vwidth, General.Map.FormatInterface.VertexDecimals);
else
forwardoffset = (float)Math.Round((j.offsetx + (float)Math.Round(j.sidedef.Line.Length)) % vwidth, General.Map.FormatInterface.VertexDecimals);