summaryrefslogtreecommitdiff
path: root/gui.py
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2015-08-11 02:56:56 +0200
committerFlorian Jung <flo@windfisch.org>2015-08-11 02:56:56 +0200
commita5338ee3d9b2342db41bd603889e20e761a3a5ce (patch)
treef6b0b2e8d27feb9681cb510cf96620059eb2a71e /gui.py
parent81cf68d67206c2aff32069821f5454d06a157ced (diff)
draw_arc() now takes radians, not deg
Diffstat (limited to 'gui.py')
-rw-r--r--gui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui.py b/gui.py
index 91a52a8..19690c8 100644
--- a/gui.py
+++ b/gui.py
@@ -77,7 +77,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()