[gnome-games] gnotravex: Adapt to GamesClock API changes
- From: Christian Persch <chpe src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-games] gnotravex: Adapt to GamesClock API changes
- Date: Sun, 12 Jul 2009 19:21:27 +0000 (UTC)
commit 391b99b3cc78cc331c040797de96c3ab910d2ba0
Author: Christian Persch <chpe gnome org>
Date: Sun Jul 12 21:16:23 2009 +0200
gnotravex: Adapt to GamesClock API changes
Use games_clock_reset().
gnotravex/gnotravex.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gnotravex/gnotravex.c b/gnotravex/gnotravex.c
index b5c17ab..05adb89 100644
--- a/gnotravex/gnotravex.c
+++ b/gnotravex/gnotravex.c
@@ -1275,8 +1275,7 @@ game_score (void)
GamesScoreValue score;
if (!have_been_hinted) {
- seconds = GAMES_CLOCK (timer)->stopped;
- games_clock_set_seconds (GAMES_CLOCK (timer), (int) seconds);
+ seconds = games_clock_get_seconds (GAMES_CLOCK (timer));
score.time_double = (gfloat) (seconds / 60) + (gfloat) (seconds % 60) / 100;
pos = games_scores_add_score (highscores, score);
}
@@ -1536,7 +1535,7 @@ void
timer_start (void)
{
games_clock_stop (GAMES_CLOCK (timer));
- games_clock_set_seconds (GAMES_CLOCK (timer), 0);
+ games_clock_reset (GAMES_CLOCK (timer));
games_clock_start (GAMES_CLOCK (timer));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]