FSDJump is also an instance change for combat zones

This commit is contained in:
Florian Stinglmayr 2022-11-26 16:22:35 +01:00
parent 22396c9b22
commit 0cc8a1f29a

View File

@ -224,6 +224,12 @@ internal class FSDJumpParser : TransactionParserPart {
throw new InvalidJournalEntryException();
}
// If you FSD jump straight out of the combat zone into a different system
// then the combat zone will be placed in the wrong system otherwise.
// This call needs to be *before* changing the current system.
context.DiscernCombatZone(transactions, e);
context.ResetCombatZone();
context.CurrentSystem = entry.StarSystem;
context.CurrentSystemAddress = entry.SystemAddress;