summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtictactoe.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tictactoe.py b/tictactoe.py
index b278518..b5251ea 100755
--- a/tictactoe.py
+++ b/tictactoe.py
@@ -223,6 +223,7 @@ class gtkTicTacToe (gtk.DrawingArea):
'''Check if the cursor clicked an interesting area'''
if self._finished:
self.new_game ()
+ return
alloc = self.get_allocation ()
side = min (alloc.width, alloc.height)
cell_side = int (float (side) / 3)