changeset 183:2b9176c35397

Move cursor reset to start of night so it also triggers on using 'n' to finish day.
author Simon Cross <hodgestar@gmail.com>
date Fri, 04 Sep 2009 17:12:12 +0000
parents d63951985313
children ab7063d7c5e5
files gamelib/engine.py gamelib/gameboard.py
diffstat 2 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gamelib/engine.py	Fri Sep 04 16:49:38 2009 +0000
+++ b/gamelib/engine.py	Fri Sep 04 17:12:12 2009 +0000
@@ -145,6 +145,7 @@
         """Add some foxes to the farm"""
         sound.stop_background_music()
         self.game.gameboard.tv.sun(False)
+        self.game.gameboard.reset_cursor()
 
         sound.play_sound("nightfall.ogg")
         # Add a timer to the event queue
--- a/gamelib/gameboard.py	Fri Sep 04 16:49:38 2009 +0000
+++ b/gamelib/gameboard.py	Fri Sep 04 17:12:12 2009 +0000
@@ -102,7 +102,6 @@
 
     def day_done(self):
         import engine
-        self.gameboard.reset_cursor()
         pygame.event.post(engine.START_NIGHT)
 
     update_cash_counter = mkcountupdate('cash_counter')