SCI: Don't do suffix expansions after exact dict match

This fixes the parsing of "buy healing pills" in QfG2 (bug #3288328).
The behaviour is half-confirmed with experimentation in SSCI.
This commit is contained in:
Willem Jan Palenstijn 2011-05-14 17:59:30 +02:00
parent 47a7b65dc1
commit 0788493015

View File

@ -392,9 +392,11 @@ void Vocabulary::lookupWord(ResultWordList& retval, const char *word, int word_l
// SCI01 was the first version to support
// multiple matches, so no need to look further
// in earlier versions.
if (getSciVersion() < SCI_VERSION_01)
return;
// In versions that do support multiple matches, it seems
// that SSCI also aborts early when it finds an exact match in the
// dictionary.
return;
}
// Now try all suffixes