summaryrefslogtreecommitdiff
path: root/gui.py
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2015-08-28 17:27:42 +0200
committerFlorian Jung <flo@windfisch.org>2015-08-28 18:37:47 +0200
commite4b732abd4ea034f75645d333ff5b357d1b612e7 (patch)
tree6d455caf4a92a4df7ac4ada2a8bfe2d62e95fed9 /gui.py
parent024a2e35638436dd36379d86f1619b617c2ecea9 (diff)
track shooting angles and distances
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 83730bf..26b1045 100644
--- a/gui.py
+++ b/gui.py
@@ -211,7 +211,7 @@ def draw_cell(cell):
cx2,cy2 = world_to_win_pt(p2,c.player.center)
cx3,cy3 = world_to_win_pt(p3,c.player.center)
- except AttributeError:
+ except (AttributeError, TypeError):
cx2,cy2=cx,cy
cx3,cy3=cx,cy