don't ignore new system factions

If a factions expands or retreats into a system we see, we won't pick it up if we remain with old data.
This commit is contained in:
Florian Stinglmayr 2023-05-14 20:20:43 +02:00
parent 8f9f4f3e35
commit b005edc27f

View File

@ -66,8 +66,7 @@ internal class LocationParser : ITransactionParserPart {
context.StationOwner = null;
}
if (!context.SystemFactions.ContainsKey(entry.StarSystem) &&
entry.SystemFactions != null && entry.SystemFactions.Count > 0) {
if (entry.SystemFactions != null && entry.SystemFactions.Count > 0) {
context.SystemFactions[entry.StarSystem] = entry.SystemFactions;
}
}
@ -101,8 +100,7 @@ internal class FSDJumpParser : ITransactionParserPart {
context.ControllingFaction = entry.SystemFaction;
}
if (!context.SystemFactions.ContainsKey(entry.StarSystem) &&
entry.SystemFactions != null && entry.SystemFactions.Count > 0) {
if (entry.SystemFactions != null && entry.SystemFactions.Count > 0) {
context.SystemFactions[entry.StarSystem] = entry.SystemFactions;
}
}