diff --git a/Source/Plugins/StairSectorBuilder/StairSectorBuilderMode.cs b/Source/Plugins/StairSectorBuilder/StairSectorBuilderMode.cs index 3e4f98e44540bce5d7865b6151f3cbb50828d9cb..2ef625d6bd61ad932a251e1237a6c921289f220f 100755 --- a/Source/Plugins/StairSectorBuilder/StairSectorBuilderMode.cs +++ b/Source/Plugins/StairSectorBuilder/StairSectorBuilderMode.cs @@ -1067,10 +1067,11 @@ namespace CodeImp.DoomBuilder.StairSectorBuilderMode private DrawnVertex SectorVertex(double x, double y) { DrawnVertex v = new DrawnVertex(); + int precision = General.Settings.SnapToInteger ? 0 : General.Map.FormatInterface.VertexDecimals; v.stitch = true; v.stitchline = true; - v.pos = new Vector2D(Math.Round(x, General.Map.FormatInterface.VertexDecimals), Math.Round(y, General.Map.FormatInterface.VertexDecimals)); + v.pos = new Vector2D(Math.Round(x, precision), Math.Round(y, precision)); return v; }