comparison tools/area_editor.py @ 457:fcf9f6edf153

Use right cordinates for interior walls
author Neil Muller <drnlmuller@gmail.com>
date Sat, 07 Sep 2013 15:32:24 +0200
parents 9ae08939fd90
children 41ebc538109c
comparison
equal deleted inserted replaced
456:427d4a3c53d7 457:fcf9f6edf153
161 pointlist.append(mouse_pos) 161 pointlist.append(mouse_pos)
162 pygame.draw.lines(self._surface, LINE_COLOR, False, pointlist, 162 pygame.draw.lines(self._surface, LINE_COLOR, False, pointlist,
163 line_width) 163 line_width)
164 if draw_cand_line and start_pos and mouse_pos: 164 if draw_cand_line and start_pos and mouse_pos:
165 endpoint = level_widget.snap_to_grid(mouse_pos) 165 endpoint = level_widget.snap_to_grid(mouse_pos)
166 endpoint = self.point_to_pymunk(endpoint)
166 pointlist = [start_pos, 167 pointlist = [start_pos,
167 self.point_to_pygame(endpoint)] 168 self.point_to_pygame(endpoint)]
168 pygame.draw.lines(self._surface, LINE_COLOR, False, pointlist, 1) 169 pygame.draw.lines(self._surface, LINE_COLOR, False, pointlist, 1)
169 return self._surface 170 return self._surface
170 171