changeset 215:85a5299caf4a

bugfix: deselect eaten chickens
author Adrianna Pińska <adrianna.pinska@gmail.com>
date Fri, 04 Sep 2009 22:01:20 +0000
parents 87a58da53b17
children 962934b8c7dc
files gamelib/gameboard.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gamelib/gameboard.py	Fri Sep 04 21:53:19 2009 +0000
+++ b/gamelib/gameboard.py	Fri Sep 04 22:01:20 2009 +0000
@@ -710,6 +710,8 @@
             self.tv.sprites.remove(fox)
 
     def remove_chicken(self, chick):
+        if chick is self.animal_to_place:
+            self.select_animal_to_place(None)
         self.chickens.discard(chick)
         if chick.egg:
             self.eggs -= 1