summary refs log tree commit diff stats
path: root/lingo.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2022-12-10 14:59:31 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2022-12-10 14:59:31 -0500
commit9b77c375056b41f3ec01798ae3a567fc0075a14b (patch)
tree5013561f6a1b0c52edfef29657ea6f3785ca2992 /lingo.cpp
parent9a2c94ef652966bad305f43a8920a5e208230774 (diff)
downloadlingo-9b77c375056b41f3ec01798ae3a567fc0075a14b.tar.gz
lingo-9b77c375056b41f3ec01798ae3a567fc0075a14b.tar.bz2
lingo-9b77c375056b41f3ec01798ae3a567fc0075a14b.zip
Proper noun filter wasn't being applied to clue queries
fixes #8
Diffstat (limited to 'lingo.cpp')
-rw-r--r--lingo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lingo.cpp b/lingo.cpp index c5e34f6..3391c30 100644 --- a/lingo.cpp +++ b/lingo.cpp
@@ -513,7 +513,7 @@ private:
513 std::optional<Colour>& colour = parts[i]; 513 std::optional<Colour>& colour = parts[i];
514 if (colour.has_value()) { 514 if (colour.has_value()) {
515 verbly::filter questionFilter = makeHintFilter(solution, height, *colour, kTowardQuestion); 515 verbly::filter questionFilter = makeHintFilter(solution, height, *colour, kTowardQuestion);
516 verbly::form questionPart = database_->forms(questionFilter && cleanFilter).first(); 516 verbly::form questionPart = database_->forms(questionFilter && cleanFilter && wordFilter).first();
517 msg_stream << COLOUR_EMOTES[*colour] << " " << questionPart.getText() << std::endl; 517 msg_stream << COLOUR_EMOTES[*colour] << " " << questionPart.getText() << std::endl;
518 518
519 admissible &= makeHintFilter(questionPart, height, *colour, kTowardSolution); 519 admissible &= makeHintFilter(questionPart, height, *colour, kTowardSolution);