changeset 275:678be1afc307

Fix minor bug in clearing of tool state on right-click.
author Simon Cross <hodgestar@gmail.com>
date Sat, 05 Sep 2009 14:15:35 +0000
parents bee12aed1f68
children 87fd4e4d696d
files gamelib/gameboard.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gamelib/gameboard.py	Sat Sep 05 14:13:40 2009 +0000
+++ b/gamelib/gameboard.py	Sat Sep 05 14:15:35 2009 +0000
@@ -338,8 +338,8 @@
         if not self.day:
             return
         if e.button == 3: # Right button
-            self.selected_tool = None
-            self.set_cursor()
+            self.set_selected_tool(None, None)
+            self.toolbar.clear_tool()
         elif e.button != 1: # Left button
             return
         if self.selected_tool == constants.TOOL_SELL_CHICKEN: