Restore previous mode when closing the map.
Fixes a bug where running ship.actions.map()
inside the console
and then closing the map produced inconsistent state (flight mode
is active but console remains visible).
Fixes a bug where running ship.actions.map()
inside the console
and then closing the map produced inconsistent state (flight mode
is active but console remains visible).