[five-or-more] Don't enter a score of ZERO in highscores
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [five-or-more] Don't enter a score of ZERO in highscores
- Date: Fri, 26 Dec 2014 18:38:55 +0000 (UTC)
commit 2b8d457b6b09d2302a0ac7afdfbdcbf0acd86b13
Author: Sahil Sareen <sahil sareen hotmail com>
Date: Sun Nov 16 20:22:46 2014 +0530
Don't enter a score of ZERO in highscores
Make sure that a zero score is not pushed into the highscores.
https://bugzilla.gnome.org/show_bug.cgi?id=740213
src/five-or-more.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/five-or-more.c b/src/five-or-more.c
index ff2585b..489eee7 100644
--- a/src/five-or-more.c
+++ b/src/five-or-more.c
@@ -489,7 +489,8 @@ game_over (void)
int pos;
set_status_message (_("Game Over!"));
- pos = games_scores_add_plain_score (highscores, score);
+ if (score > 0)
+ pos = games_scores_add_plain_score (highscores, score);
show_scores (pos);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]