summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSpitfireX <timm.weber@me.com>2015-08-11 02:49:51 +0200
committerSpitfireX <timm.weber@me.com>2015-08-11 02:49:51 +0200
commitd4f6807acab2cb0c3a1e5bd6d91fc16630c565f3 (patch)
treefb3ef491c17d4db54a29cced24a17d594b0edf6a
parent6903c9ca537ccae1265acbb8bfea17480a5c4ae2 (diff)
Fixed draw_circle for global coordinates
-rw-r--r--gui.py5
1 files changed, 1 insertions, 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)