mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2025-01-18 10:26:15 +01:00
Allow more types of invalid input when previewing a move being played
This commit is contained in:
parent
a9f5935285
commit
2c3cb83e0a
2 changed files with 2 additions and 2 deletions
|
@ -351,7 +351,7 @@ int Board::checkRoundAux(const Matrix<Tile> &iTilesMx,
|
|||
|
||||
// We may not be allowed to use so many letters from the rack
|
||||
// (cf. "7 among 8" variant)
|
||||
if (fromrack > m_params.getLettersToPlay())
|
||||
if (checkJunction && fromrack > m_params.getLettersToPlay())
|
||||
return 9;
|
||||
|
||||
// The word must cover at least one anchor square, except
|
||||
|
|
|
@ -576,7 +576,7 @@ int Game::checkPlayedWord(const wstring &iCoord,
|
|||
return 10;
|
||||
}
|
||||
|
||||
if (checkRack)
|
||||
if (checkWordAndJunction && checkRack)
|
||||
{
|
||||
// Check that the word can be formed with the tiles in the rack:
|
||||
// we first create a copy of the rack, then we remove the tiles
|
||||
|
|
Loading…
Reference in a new issue