Renderer2D.PlotLine now transforms the y coordinate so that linedefs in nodes viewer, automap/sound environment/sound propagation mode are not flipped upside down anymore. Fixes #325.

This commit is contained in:
biwa 2019-12-25 01:54:05 +01:00
parent d559ba30d7
commit 33b888e5d2

View file

@ -2032,7 +2032,7 @@ namespace CodeImp.DoomBuilder.Rendering
if((v2 - v1).GetLengthSq() < linenormalsize * lengthscaler) return;
// Draw line
plotter.DrawLineSolid((int)v1.x, (int)v1.y, (int)v2.x, (int)v2.y, ref c);
plotter.DrawLineSolid((int)v1.x, TransformY((int)v1.y), (int)v2.x, TransformY((int)v2.y), ref c);
}
private Vector2D TransformY(Vector2D v)