Mercurial > rinkhals
diff gamelib/gameboard.py @ 218:5cb0e0b9cd16
Make sprite cursors stay on top by fudging the sprite list. :/
author | Simon Cross <hodgestar@gmail.com> |
---|---|
date | Fri, 04 Sep 2009 22:12:47 +0000 |
parents | 76faa0eb38f0 |
children | 0a84d5aedc5c |
line wrap: on
line diff
--- a/gamelib/gameboard.py Fri Sep 04 22:11:47 2009 +0000 +++ b/gamelib/gameboard.py Fri Sep 04 22:12:47 2009 +0000 @@ -263,12 +263,8 @@ pygame.mouse.set_cursor(*cursor) else: pygame.mouse.set_cursor(*cursors.cursors['arrow']) - if self.sprite_cursor: - self.tv.sprites.remove(self.sprite_cursor) - self.sprite_cursor = None - if sprite_curs: - self.sprite_cursor = sprite_curs - self.tv.sprites.append(self.sprite_cursor) + self.sprite_cursor = sprite_curs + self.tv.sprites.set_cursor(sprite_curs) def reset_states(self): """Clear current states (highlights, etc.)"""