mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-27 05:32:45 +00:00
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:
parent
47a7b65dc1
commit
0788493015
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user