[gnome-games] gnibbles: use new games-score API
- From: Thomas Hindoe Paaboel Andersen <thomashpa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] gnibbles: use new games-score API
- Date: Sun, 23 Jan 2011 21:53:02 +0000 (UTC)
commit 1b470fb20dbd70252288aeaa166d8e27e19bfb7b
Author: Thomas Hindoe Paaboel Andersen <phomes gmail com>
Date: Sun Jan 23 22:43:28 2011 +0100
gnibbles: use new games-score API
API changed in 91c658b890352b817cff31c6ccd4513ed7203955
gnibbles/gnibbles.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gnibbles/gnibbles.c b/gnibbles/gnibbles.c
index ae0ecb1..d8918ec 100644
--- a/gnibbles/gnibbles.c
+++ b/gnibbles/gnibbles.c
@@ -390,7 +390,6 @@ gnibbles_show_scores (GtkWidget * window, gint pos)
void
gnibbles_log_score (GtkWidget * window)
{
- GamesScoreValue score;
gint pos;
if (properties->numworms > 1)
@@ -405,8 +404,7 @@ gnibbles_log_score (GtkWidget * window)
if (!worms[0]->score)
return;
- score.plain = worms[0]->score;
- pos = games_scores_add_score (highscores, score);
+ pos = games_scores_add_plain_score (highscores, worms[0]->score);
gnibbles_show_scores (window, pos);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]