fix matching. station is not important

This commit is contained in:
Florian Stinglmayr 2022-01-29 16:18:28 +01:00
parent 3f55e946a3
commit b03d851f77
2 changed files with 2 additions and 1 deletions

View File

@ -68,6 +68,7 @@ namespace EliteBGS.BGS {
} }
} }
/* if system and faction already match, station is not so important */
if (e.Station != null && station != null) { if (e.Station != null && station != null) {
if (string.Compare(e.Station, station, true) == 0) { if (string.Compare(e.Station, station, true) == 0) {
++match_count; ++match_count;

View File

@ -264,7 +264,7 @@ namespace EliteBGS.BGS {
/* Find all objectives that generally match. /* Find all objectives that generally match.
*/ */
var matches = objectives var matches = objectives
.Where(x => x.Matches(entry) >= 3) .Where(x => x.Matches(entry) >= 2)
.OrderBy(x => x.Matches(entry)) .OrderBy(x => x.Matches(entry))
; ;