Visual Mode: more skewing fixes

This commit is contained in:
biwa 2023-11-19 16:56:13 +01:00
parent f7373f7534
commit 6e08cc8e68

View file

@ -455,7 +455,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
skew = new Vector2f(
Vertices.Min(v => v.u), // Get the lowest horizontal texture offset
(float)((rightz - leftz) / Sidedef.Line.Length * ((double)Texture.Width / Texture.Height) * Sidedef.Fields.GetValue("scaley_mid", 1.0) / Sidedef.Fields.GetValue("scaley_mid", 1.0))
(float)((rightz - leftz) / Sidedef.Line.Length * ((double)Texture.Width / Texture.Height) * Sidedef.Fields.GetValue("scaley_mid", 1.0) / Sidedef.Fields.GetValue("scalex_mid", 1.0))
);
}
}