DEADSOFTWARE

Rebind the object flip button from 'V' to 'I' to prevent conflicts with Ctrl+V
[d2df-editor.git] / src / editor / f_main.pas
index 2df86ca6f40543ca72fe14c0d0ce5e2d911f3ad1..eb2348e2d5016a7e5f669fe3397fb4ff4fa8ca5f 100644 (file)
@@ -4539,7 +4539,7 @@ begin
       end
     end;
 
-    if Key = Ord('V') then
+    if Key = Ord('I') then
     begin // Поворот монстров и областей:
       if (SelectedObjects <> nil) then
       begin
@@ -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