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:
eehouse 2010-02-24 04:29:00 +00:00
parent 3d26d9fc01
commit 8b84bdf56e

View file

@ -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;