mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-05-31 23:59:38 +03:00
Fix for in-system jump after undocking
This commit is contained in:
parent
b4760d4649
commit
3645d821dc
@ -258,15 +258,16 @@ def journal_entry(cmdr, is_beta, system, station, entry, state):
|
|||||||
elif entry['event'] == 'Undocked':
|
elif entry['event'] == 'Undocked':
|
||||||
this.undocked = True
|
this.undocked = True
|
||||||
|
|
||||||
elif entry['event'] == 'SupercruiseEntry' and this.undocked:
|
elif entry['event'] == 'SupercruiseEntry':
|
||||||
# Staying in system after undocking
|
if this.undocked:
|
||||||
|
# Staying in system after undocking - send any pending events from in-station action
|
||||||
|
add_event('setCommanderTravelLocation', entry['timestamp'],
|
||||||
|
OrderedDict([
|
||||||
|
('starsystemName', system),
|
||||||
|
('shipType', companion.ship_map.get(state['ShipType'], state['ShipType'])),
|
||||||
|
('shipGameID', state['ShipID']),
|
||||||
|
]))
|
||||||
this.undocked = False
|
this.undocked = False
|
||||||
add_event('setCommanderTravelLocation', entry['timestamp'],
|
|
||||||
OrderedDict([
|
|
||||||
('starsystemName', system),
|
|
||||||
('shipType', companion.ship_map.get(state['ShipType'], state['ShipType'])),
|
|
||||||
('shipGameID', state['ShipID']),
|
|
||||||
]))
|
|
||||||
|
|
||||||
elif entry['event'] == 'FSDJump':
|
elif entry['event'] == 'FSDJump':
|
||||||
this.undocked = False
|
this.undocked = False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user