Mercurial > rinkhals
diff gamelib/engine.py @ 213:07b361ebd87f
Ensure we clean up highlights, etc.
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Fri, 04 Sep 2009 21:49:32 +0000 |
parents | 653da96db572 |
children | 322e6d3a46e4 |
line wrap: on
line diff
--- a/gamelib/engine.py Fri Sep 04 21:35:40 2009 +0000 +++ b/gamelib/engine.py Fri Sep 04 21:49:32 2009 +0000 @@ -120,7 +120,7 @@ if events_equal(e, START_NIGHT): return NightState(self.game) elif e.type is KEYDOWN and e.key == K_ESCAPE: - self.game.gameboard.set_cursor() + self.game.gameboard.reset_states() return GameOver(self.game) elif e.type is ANIM_ID: self.game.gameboard.run_animations() @@ -148,7 +148,7 @@ """Add some foxes to the farm""" sound.stop_background_music() self.game.gameboard.tv.sun(False) - self.game.gameboard.set_cursor() + self.game.gameboard.reset_states() sound.play_sound("nightfall.ogg") # Add a timer to the event queue