compare faction, system and station case insensitive
This commit is contained in:
parent
1d4058c514
commit
9d7dc7c850
@ -26,20 +26,23 @@ namespace NonaBGS.BGS {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (e.System != null && system != null &&
|
if (e.System != null && system != null) {
|
||||||
e.System == system) {
|
if (string.Compare(e.System, system, true) == 0) {
|
||||||
++match_count;
|
++match_count;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (e.Station != null && station != null &&
|
|
||||||
e.Station == station) {
|
|
||||||
++match_count;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (e.Faction != null && faction != null &&
|
if (e.Station != null && station != null) {
|
||||||
e.Faction == faction) {
|
if (string.Compare(e.Station, station, true) == 0) {
|
||||||
++match_count;
|
++match_count;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (e.Faction != null && faction != null) {
|
||||||
|
if (string.Compare(e.Faction, faction, true) == 0) {
|
||||||
|
++match_count;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return match_count;
|
return match_count;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user