diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2022-12-10 14:59:31 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2022-12-10 14:59:31 -0500 |
commit | 9b77c375056b41f3ec01798ae3a567fc0075a14b (patch) | |
tree | 5013561f6a1b0c52edfef29657ea6f3785ca2992 /lingo.cpp | |
parent | 9a2c94ef652966bad305f43a8920a5e208230774 (diff) | |
download | lingo-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.cpp | 2 |
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); |