changeset 187:42a10c4f70c8

Err, in pymunk coordinates
author Stefano Rivera <stefano@rivera.za.net>
date Tue, 03 Sep 2013 20:10:44 +0200
parents d63c19003aec
children 3894cfe15823
files tools/area_editor.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tools/area_editor.py	Tue Sep 03 20:06:12 2013 +0200
+++ b/tools/area_editor.py	Tue Sep 03 20:10:44 2013 +0200
@@ -233,7 +233,8 @@
 
     def mouse_down(self, ev):
         if ev.button == 1:
-            print "Click: %r" % (self._level_coordinates(ev.pos),)
+            print "Click: %r" % (
+                self.level.point_to_pymunk(self._level_coordinates(ev.pos)),)
         if ev.button == 4:  # Scroll up
             self._move_view((0, -10))
         elif ev.button == 5:  # Scroll down