[gcompris] findit: no more ask several times a missing answer at the level end.
- From: Bruno Coudoin <bcoudoin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcompris] findit: no more ask several times a missing answer at the level end.
- Date: Thu, 30 Jun 2011 20:23:25 +0000 (UTC)
commit a28d5e5a75c76678540090305eab80761b4b61ba
Author: Bruno Coudoin <bruno coudoin free fr>
Date: Thu Jun 30 22:22:33 2011 +0200
findit: no more ask several times a missing answer at the level end.
src/findit-activity/findit.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/findit-activity/findit.py b/src/findit-activity/findit.py
index 301be36..bd141c8 100644
--- a/src/findit-activity/findit.py
+++ b/src/findit-activity/findit.py
@@ -280,7 +280,8 @@ class Gcompris_findit:
gcompris.bonus.display(gcompris.bonus.WIN, gcompris.bonus.FLOWER)
else:
print "LOST: " + self.selected.text + " != " + self.object_target.text
- self.question_lost.append( self.object_target )
+ if not self.object_target in self.question_lost:
+ self.question_lost.append( self.object_target )
self.gamewon = 0
gcompris.bonus.display(gcompris.bonus.LOOSE, gcompris.bonus.FLOWER)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]