mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-18 09:57:40 +03:00
Inara: Remove useless/wrong setCommanderTravelLocation from SupercruiseEntry
This is old code, pre-dating the move to EDCD. We could only possibly set the system name and address from this, and would always have already set this from login Location event, or any jump-in event.
This commit is contained in:
parent
f6777f0237
commit
7a69ca5e6b
@ -605,18 +605,6 @@ def journal_entry( # noqa: C901, CCR001
|
|||||||
this.station = None
|
this.station = None
|
||||||
|
|
||||||
elif event_name == 'SupercruiseEntry':
|
elif event_name == 'SupercruiseEntry':
|
||||||
if this.undocked:
|
|
||||||
# Staying in system after undocking - send any pending events from in-station action
|
|
||||||
new_add_event(
|
|
||||||
'setCommanderTravelLocation',
|
|
||||||
entry['timestamp'],
|
|
||||||
{
|
|
||||||
'starsystemName': system,
|
|
||||||
'shipType': state['ShipType'],
|
|
||||||
'shipGameID': state['ShipID'],
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
||||||
this.undocked = False
|
this.undocked = False
|
||||||
|
|
||||||
elif event_name == 'SupercruiseExit':
|
elif event_name == 'SupercruiseExit':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user