Commit cc0c3de9 authored by Bruno Coudoin's avatar Bruno Coudoin

From trunk.

Fixed small bug (2 player mode) -> show happy flower even if player 2 wins
parent a0ab60f0
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
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment