diff gamelib/gamescreen.py @ 519:8f3c82c685a4

Fix is_interactive() by adding tool param.
author Jeremy Thurgood <firxen@gmail.com>
date Tue, 07 Sep 2010 18:13:35 +0200
parents 26f9b4d10e3e
children 92782d1ca7be
line wrap: on
line diff
--- a/gamelib/gamescreen.py	Tue Sep 07 17:05:51 2010 +0200
+++ b/gamelib/gamescreen.py	Tue Sep 07 18:13:35 2010 +0200
@@ -39,7 +39,7 @@
         item = self.state.inventory[item_no]
         if self.item_is_selected(item_no):
             self.unselect()
-        elif self.state.tool or item.is_interactive():
+        elif item.is_interactive(self.state.tool):
             result = item.interact(self.state.tool)
             handle_result(result, self.state_widget)
         else: