From 9b77c375056b41f3ec01798ae3a567fc0075a14b Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 10 Dec 2022 14:59:31 -0500 Subject: Proper noun filter wasn't being applied to clue queries fixes #8 --- lingo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lingo.cpp') diff --git a/lingo.cpp b/lingo.cpp index c5e34f6..3391c30 100644 --- a/lingo.cpp +++ b/lingo.cpp @@ -513,7 +513,7 @@ private: std::optional& colour = parts[i]; if (colour.has_value()) { verbly::filter questionFilter = makeHintFilter(solution, height, *colour, kTowardQuestion); - verbly::form questionPart = database_->forms(questionFilter && cleanFilter).first(); + verbly::form questionPart = database_->forms(questionFilter && cleanFilter && wordFilter).first(); msg_stream << COLOUR_EMOTES[*colour] << " " << questionPart.getText() << std::endl; admissible &= makeHintFilter(questionPart, height, *colour, kTowardSolution); -- cgit 1.4.1