diff options
author | Florian Jung <flo@windfisch.org> | 2015-08-11 02:56:56 +0200 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2015-08-11 02:56:56 +0200 |
commit | a5338ee3d9b2342db41bd603889e20e761a3a5ce (patch) | |
tree | f6b0b2e8d27feb9681cb510cf96620059eb2a71e | |
parent | 81cf68d67206c2aff32069821f5454d06a157ced (diff) |
draw_arc() now takes radians, not deg
-rw-r--r-- | gui.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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() |