changeset 539:f4d1b9ff9558

Lumberjacks only wander off when their work is done.
author Jeremy Thurgood <firxen@gmail.com>
date Sat, 28 Nov 2009 09:52:08 +0000
parents ec5276cfe98b
children 882b582da618
files gamelib/engine.py gamelib/gameboard.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gamelib/engine.py	Sat Nov 28 08:59:00 2009 +0000
+++ b/gamelib/engine.py	Sat Nov 28 09:52:08 2009 +0000
@@ -193,8 +193,6 @@
 
         sound.play_sound("nightfall.ogg")
 
-        self.game.gameboard.chickens_scatter()
-        self.game.gameboard.chickens_chop_wood()
         # Add a timer to the event queue
         self.cycle_count = 0
         self.cycle_time = SLOW__SPEED
--- a/gamelib/gameboard.py	Sat Nov 28 08:59:00 2009 +0000
+++ b/gamelib/gameboard.py	Sat Nov 28 09:52:08 2009 +0000
@@ -295,6 +295,8 @@
             chicken.start_night()
         self.toolbar.update_egg_counter(self.eggs)
         self._cache_animal_positions()
+        self.chickens_chop_wood()
+        self.chickens_scatter()
 
     def start_day(self):
         if hasattr(self, '_skip_start_day'):