Mercurial > rinkhals
changeset 315:0a3161fec434
Check whether we've made the list before submitting the score
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Sat, 05 Sep 2009 18:56:33 +0000 |
parents | 2db4673ea6c2 |
children | ae5989b3ce01 |
files | gamelib/gameover.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gamelib/gameover.py Sat Sep 05 18:41:04 2009 +0000 +++ b/gamelib/gameover.py Sat Sep 05 18:56:33 2009 +0000 @@ -82,6 +82,7 @@ constants.SELL_PRICE_EGG * gameboard.eggs self.tr() + made_list = scoreboard.check(score) is not None if gameboard.is_game_over(): if len(gameboard.chickens) > 0: self.survived = WON @@ -122,7 +123,7 @@ self.tr() self.td(gui.Label("Final score : %d" % score, color=constants.FG_COLOR), colspan=3) - if scoreboard.check(score) is not None: + if made_list: self.tr() if self.survived == WON: self.td(gui.Label("You made the high scores",