changeset 513:da337a7cfe18

used snap pos to start line
author Neil Muller <drnlmuller@gmail.com>
date Sat, 07 Sep 2013 19:39:15 +0200
parents a46767c61ad6
children 04066416fcec
files tools/area_editor.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tools/area_editor.py	Sat Sep 07 19:31:30 2013 +0200
+++ b/tools/area_editor.py	Sat Sep 07 19:39:15 2013 +0200
@@ -673,7 +673,7 @@
         elif ev.button == 1:
             if self._draw_lines:
                 if self._start_pos is None:
-                    self._start_pos = corrected_pos
+                    self._start_pos = snapped_pos
                 else:
                     self.level.add_line(self._start_pos, snapped_pos)
                     self._start_pos = None