From d4f6807acab2cb0c3a1e5bd6d91fc16630c565f3 Mon Sep 17 00:00:00 2001 From: SpitfireX Date: Tue, 11 Aug 2015 02:49:51 +0200 Subject: Fixed draw_circle for global coordinates --- gui.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gui.py b/gui.py index 91a52a8..cb09891 100644 --- a/gui.py +++ b/gui.py @@ -47,10 +47,7 @@ def draw_box(rect, color, filled=False, global_coords=True): def draw_circle(pos, r, color, filled=False, global_coords=True): if global_coords: - pos = ( - world_to_win_pt(pos[0], c.player.center), - world_to_win_pt(pos[1], c.player.center) - ) + pos = world_to_win_pt(pos, c.player.center) if filled: gfxdraw.filled_circle(screen, pos[0], pos[1], r, color) -- cgit v1.2.1