[gnome-games] swell-foop: You only get the 1000 point bonus if you remove all the tiles



commit 8d8a6879e8357b56a7833de1fc19ef63ac3fe04c
Author: Edward Sheldrake <ejsheldrake gmail com>
Date:   Tue Jun 7 10:19:47 2011 +1000

    swell-foop: You only get the 1000 point bonus if you remove all the tiles

 swell-foop/src/Score.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/swell-foop/src/Score.js b/swell-foop/src/Score.js
index bb9a736..0e8c2f2 100644
--- a/swell-foop/src/Score.js
+++ b/swell-foop/src/Score.js
@@ -42,7 +42,8 @@ function increment_score(tiles)
 
 function game_completed(won)
 {
-	set_score(current_score + 1000);
+	if(won)
+		set_score(current_score + 1000);
 	
 	final_score = new ScoreView();
 	final_score.animate_final_score(current_score);



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