Add method IsLeaving to SpaceStation so we can check if we're in the process of undocking.
Only add applicable options if we're not in the process of undocking.
Clear the "hasAutopilot" flag if we launching, this nicely prevents it showing any autopilot options and avoids double checking it.
Thanks to radius75 for identifying the correct fix!
I did also forget an `&` in there :/
Include the check that we're flying in the initial autopilot test.
Kind of logical for you to only be able to autopilot if you're actually flying.
Removed the IsLaunching method, changed the remaining check to see if we're actually flying.
Also fixed some line endings.
Merge branch 'Fix2263'