[gcompris] money activity: the bonus lost is now displayed in case the children click ok and the answer it wron



commit 74d911d10308db5ee1680a187e8dff3b8ece9add
Author: Sowmya Ravidas <sowmya ravidas gmail com>
Date:   Wed Apr 4 00:34:46 2012 +0200

    money activity: the bonus lost is now displayed in case the children click ok and the answer it wrong.
    
    This makes it compliant with the usage in other activities.

 src/money-activity/money.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/money-activity/money.c b/src/money-activity/money.c
index 0388abd..6fc64c4 100644
--- a/src/money-activity/money.c
+++ b/src/money-activity/money.c
@@ -878,8 +878,12 @@ void moneyactivity_process_ok()
      price_target <= money_widget_get_total(seller_money) + 0.001 )
     {
       gamewon = TRUE;
-      gc_bonus_display(gamewon, GC_BONUS_SMILEY);
     }
+  else
+    {
+      gamewon = FALSE;
+    }
+  gc_bonus_display(gamewon, GC_BONUS_SMILEY);
 }
 
 static void display_paying_note(guint note, guint x, guint y)



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