[gcompris/gcomprixogoo] From trunk.
- From: Bruno Coudoin <bcoudoin src gnome org>
- To: svn-commits-list gnome org
- Subject: [gcompris/gcomprixogoo] From trunk.
- Date: Sat, 20 Jun 2009 11:21:55 -0400 (EDT)
commit cc0c3de9985bbd68397b263a87fa3444ca6e122f
Author: Bruno Coudoin <bruno coudoin free fr>
Date: Sat Jun 20 17:21:03 2009 +0200
From trunk.
Fixed small bug (2 player mode) -> show happy flower even if player 2 wins
ChangeLog | 6 ++++++
src/connect4-activity/connect4.py | 2 +-
2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 9419eb8..22dc656 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-06-20 Bruno coudoin <bruno coudoin free fr>
+
+ Vitali Perchonok is com gmail from vitali.pe
+ Fixed small bug (2 player mode) -> show happy flower even if player 2 wins
+ * src/boards/python/connect4.py:
+
2009-06-20 Wolfram Sang <wolfram iswi org>
- From trunk
diff --git a/src/connect4-activity/connect4.py b/src/connect4-activity/connect4.py
index c1e4eb9..a1f9b0f 100644
--- a/src/connect4-activity/connect4.py
+++ b/src/connect4-activity/connect4.py
@@ -355,7 +355,7 @@ class Gcompris_connect4:
line_width = 8,
line_cap = cairo.LINE_CAP_ROUND
)
- if player == 1:
+ if player == 1 or self.mode == 2:
gcompris.bonus.display(gcompris.bonus.WIN, gcompris.bonus.FLOWER)
elif player == 2:
gcompris.bonus.display(gcompris.bonus.LOOSE, gcompris.bonus.FLOWER)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]