diff gamelib/state.py @ 266:80cb577e38f2

Non-interactive things no longer highlight the cursor.
author Jeremy Thurgood <firxen@gmail.com>
date Fri, 27 Aug 2010 20:08:18 +0200
parents 3cedc4f95925
children 8e27efd331aa
line wrap: on
line diff
--- a/gamelib/state.py	Fri Aug 27 20:06:44 2010 +0200
+++ b/gamelib/state.py	Fri Aug 27 20:08:18 2010 +0200
@@ -323,7 +323,7 @@
         """
         if self._current_thing is not None:
             if self._current_thing.contains(pos):
-                screen.cursor_highlight(True)
+                screen.cursor_highlight(self._current_thing.is_interactive())
                 return
             else:
                 self._current_thing.leave()
@@ -408,7 +408,7 @@
         return None
 
     def is_interactive(self):
-        return self.current_interact is not None
+        return True
 
     def enter(self, item):
         """Called when the cursor enters the Thing."""