summaryrefslogtreecommitdiff
path: root/gui.py
diff options
context:
space:
mode:
Diffstat (limited to 'gui.py')
-rw-r--r--gui.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui.py b/gui.py
index cb09891..800abc4 100644
--- a/gui.py
+++ b/gui.py
@@ -74,7 +74,7 @@ def draw_arc(pos, r, bounds, color, global_coords=True):
if global_coords:
pos = world_to_win_pt(pos, c.player.center)
- gfxdraw.arc(screen, pos[0], pos[1], r, bounds[0], bounds[1], color)
+ gfxdraw.arc(screen, pos[0], pos[1], r, int(bounds[0]*180/math.pi), int(bounds[1]*180/math.pi), color)
def update():
pygame.display.update()
@@ -239,4 +239,4 @@ def draw_frame():
if event.type == MOUSEMOTION:
c.send_target(*win_to_world_pt(event.pos, c.player.center))
- pygame.display.update() \ No newline at end of file
+ pygame.display.update()