[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Eliot-dev] eliot/game game_move_cmd.cpp
From: |
Olivier Teulière |
Subject: |
[Eliot-dev] eliot/game game_move_cmd.cpp |
Date: |
Thu, 19 Feb 2009 18:26:11 +0000 |
CVSROOT: /cvsroot/eliot
Module name: eliot
Changes by: Olivier Teulière <ipkiss> 09/02/19 18:26:11
Modified files:
game : game_move_cmd.cpp
Log message:
Fixed a regression: joker games were not working correctly in version
1.8.
Thanks to Marcel Jolly for spotting this
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/eliot/game/game_move_cmd.cpp?cvsroot=eliot&r1=1.3&r2=1.4
Patches:
Index: game_move_cmd.cpp
===================================================================
RCS file: /cvsroot/eliot/eliot/game/game_move_cmd.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- game_move_cmd.cpp 23 Nov 2008 17:02:33 -0000 1.3
+++ game_move_cmd.cpp 19 Feb 2009 18:26:11 -0000 1.4
@@ -107,13 +107,13 @@
if (m_round.isPlayedFromRack(i) && m_round.isJoker(i))
{
// Get the real bag
- Bag bag(m_game.getDic());
- m_game.realBag(bag);
+ Bag tmpBag(m_game.getDic());
+ m_game.realBag(tmpBag);
// Is the represented letter still available in the bag?
// XXX: this way to get the represented letter sucks...
Tile t(towupper(m_round.getTile(i).toChar()));
- if (bag.in(t))
+ if (tmpBag.in(t))
{
bag.replaceTile(Tile::Joker());
bag.takeTile(t);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Eliot-dev] eliot/game game_move_cmd.cpp,
Olivier Teulière <=