Board: allow one more type of invalid word when previewing a played word

This commit is contained in:
Olivier Teulière 2013-01-11 11:06:17 +01:00
parent c34bd76918
commit 2db1732f7a

View file

@ -239,8 +239,9 @@ int Board::checkRoundAux(const Matrix<Tile> &iTilesMx,
return 8;
// Is the word an extension of another word?
if (!iTilesMx[row][col - 1].isEmpty() ||
!iTilesMx[row][col + iRound.getWordLen()].isEmpty())
if (checkJunction &&
(!iTilesMx[row][col - 1].isEmpty() ||
!iTilesMx[row][col + iRound.getWordLen()].isEmpty()))
{
return 1;
}