Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/PathsActivity.py
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2011-03-26 12:22:18 (GMT)
committer Walter Bender <walter.bender@gmail.com>2011-03-26 12:22:18 (GMT)
commit32103852d9695b872ac9483d99a93743f7bab1ae (patch)
treeb9456b17c05070725d83869c59ec132adcac8764 /PathsActivity.py
parent357fec9b4e8213cb14c202bd04bc64d97c64c5d2 (diff)
fixed? problem with restore when sharing
Diffstat (limited to 'PathsActivity.py')
-rw-r--r--PathsActivity.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/PathsActivity.py b/PathsActivity.py
index bfc788e..f3f8d7b 100644
--- a/PathsActivity.py
+++ b/PathsActivity.py
@@ -466,8 +466,15 @@ state=%d' % (id, initiator, type, service, params, state))
grid_position, self._game.deck)
self._game.show_connected_tiles()
- # Then the sharer should let the next player know it is their turn.
if self.initiating:
+ # First, remove the piece from whatever hand it was played.
+ for i in range(COL):
+ if self._game.hands[self._game.whos_turn].hand[i].number == \
+ tile_number:
+ self._game.hands[self._game.whos_turn].hand[i] = None
+ break
+
+ # Then let the next player know it is their turn.
self._game.whos_turn += 1
if self._game.whos_turn == len(self._game.buddies):
self._game.whos_turn = 0