diff options
author | SpitfireX <timm.weber@me.com> | 2015-08-11 02:49:51 +0200 |
---|---|---|
committer | SpitfireX <timm.weber@me.com> | 2015-08-11 02:49:51 +0200 |
commit | d4f6807acab2cb0c3a1e5bd6d91fc16630c565f3 (patch) | |
tree | fb3ef491c17d4db54a29cced24a17d594b0edf6a | |
parent | 6903c9ca537ccae1265acbb8bfea17480a5c4ae2 (diff) |
Fixed draw_circle for global coordinates
-rw-r--r-- | gui.py | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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) |