X-Git-Url: https://deadsoftware.ru/gitweb?p=d2df-editor.git;a=blobdiff_plain;f=src%2Feditor%2Ff_main.pas;h=aaa201e5ecda20472d09a9f38b9ffcfa443d26c5;hp=2df86ca6f40543ca72fe14c0d0ce5e2d911f3ad1;hb=d1d8c51b133bc9571156ea9aef7eef3b979c0025;hpb=3b5fc2b02b235ec358def8f7f59e7ea0c4cc3b0d diff --git a/src/editor/f_main.pas b/src/editor/f_main.pas index 2df86ca..aaa201e 100644 --- a/src/editor/f_main.pas +++ b/src/editor/f_main.pas @@ -5836,8 +5836,8 @@ begin if h > 0 then begin - xadj := -pmin.X - Floor((MapOffset.X - 32) / DotStep) * DotStep; - yadj := -pmin.Y - Floor((MapOffset.Y - 32) / DotStep) * DotStep; + xadj := Floor((-pmin.X - MapOffset.X + 32) / DotStep) * DotStep; + yadj := Floor((-pmin.Y - MapOffset.Y + 32) / DotStep) * DotStep; end else begin