# HG changeset patch # User Neil Muller # Date 1378582253 -7200 # Node ID c13f81f8d48cacff03590fe92d05c7898f47ec03 # Parent 15f066cc5bf189f0f3f423941e0d1fb482018045 Hackily unbreak terrian movement. diff -r 15f066cc5bf1 -r c13f81f8d48c tools/area_editor.py --- a/tools/area_editor.py Sat Sep 07 21:28:49 2013 +0200 +++ b/tools/area_editor.py Sat Sep 07 21:30:53 2013 +0200 @@ -875,9 +875,17 @@ new_coords = self.level.point_to_pymunk(new_pos) shape = obj.get_shape() shape.body.position = (new_coords[0], new_coords[1]) + data = self.level.lookup[obj] + args = data['args'] + param_defs = obj.requires()[1:] # chop off name + for i, (_key, key_type) in enumerate(param_defs): + if i > len(args): + break + if key_type == "polygon (convex)": + self._update_pos(obj, new_pos) self.invalidate() - def _update_pos(self, obj, new_pos, final=False): + def _update_pos(self, obj, new_pos): data = self.level.lookup[obj] new_coords = self.level.point_to_pymunk(new_pos) args = data['args']