diff gamelib/gameboard.py @ 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 cade64404997
children f6bd57494e81
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: