mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
Once user has rejected a bad word, don't ask about any later ones as
the whole turn's being rejected. Should be merged to trunk.
This commit is contained in:
parent
3d26d9fc01
commit
8b84bdf56e
1 changed files with 2 additions and 1 deletions
|
@ -562,7 +562,8 @@ warnBadWords( XP_UCHAR* word, void* closure )
|
|||
bwi.nWords = 1;
|
||||
bwi.words[0] = word;
|
||||
|
||||
ok = util_warnIllegalWord( board->util, &bwi, turn, XP_FALSE );
|
||||
ok = !board->badWordRejected
|
||||
&& util_warnIllegalWord( board->util, &bwi, turn, XP_FALSE );
|
||||
board->badWordRejected = !ok || board->badWordRejected;
|
||||
|
||||
return ok;
|
||||
|
|
Loading…
Add table
Reference in a new issue