mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2025-01-17 06:11:49 +01:00
Fixed a regression: joker games were not working correctly in version 1.8.
Thanks to Marcel Jolly for spotting this
This commit is contained in:
parent
ed2a20a3e3
commit
903905c7bc
1 changed files with 3 additions and 3 deletions
|
@ -107,13 +107,13 @@ void GameMoveCmd::playRound()
|
|||
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);
|
||||
|
|
Loading…
Reference in a new issue