1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-14 16:27:13 +03:00

Fix for in-system jump after undocking

This commit is contained in:
Jonathan Harris 2017-11-10 17:01:06 +00:00
parent b4760d4649
commit 3645d821dc

View File

@ -258,15 +258,16 @@ def journal_entry(cmdr, is_beta, system, station, entry, state):
elif entry['event'] == 'Undocked':
this.undocked = True
elif entry['event'] == 'SupercruiseEntry' and this.undocked:
# Staying in system after undocking
elif entry['event'] == 'SupercruiseEntry':
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
add_event('setCommanderTravelLocation', entry['timestamp'],
OrderedDict([
('starsystemName', system),
('shipType', companion.ship_map.get(state['ShipType'], state['ShipType'])),
('shipGameID', state['ShipID']),
]))
elif entry['event'] == 'FSDJump':
this.undocked = False