diff gamelib/gameboard.py @ 536:1a224ba50edf

Correctly set the position of newly hatched chickens in buildings
author Neil Muller <drnlmuller@gmail.com>
date Fri, 27 Nov 2009 23:29:32 +0000
parents c1f14fa35d30
children ec5276cfe98b
line wrap: on
line diff
--- a/gamelib/gameboard.py	Fri Nov 27 22:34:56 2009 +0000
+++ b/gamelib/gameboard.py	Fri Nov 27 23:29:32 2009 +0000
@@ -952,6 +952,7 @@
             building.add_occupant(new_chick)
             self.add_chicken(new_chick)
             new_chick.equip(equipment.Nest())
+            new_chick.set_pos(new_chick.abode.get_pos())
         except buildings.BuildingFullError:
             # No space in the hen house, look nearby
             for tile_pos in building.adjacent_tiles():