[gnome-games] [same-gnome-clutter] Reset score on new game.



commit c889a3966ead6a167349777bf5e7be5b007d5c1f
Author: Tim Horton <hortont424 gmail com>
Date:   Sat Jul 11 23:26:39 2009 -0400

    [same-gnome-clutter] Reset score on new game.

 same-gnome-clutter/src/board.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/same-gnome-clutter/src/board.js b/same-gnome-clutter/src/board.js
index 15b0856..4086e99 100644
--- a/same-gnome-clutter/src/board.js
+++ b/same-gnome-clutter/src/board.js
@@ -269,6 +269,8 @@ Board = new GType({
 			if(final_score)
 				final_score.hide_score();
 			
+			main.current_score = 0;
+			
 			all_lights = [];
 			
 			for(var x = 0; x < main.tiles_w; x++)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]