diff options
Diffstat (limited to 'src/client/gamewindow.cc')
-rw-r--r-- | src/client/gamewindow.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/gamewindow.cc b/src/client/gamewindow.cc index 71a2171..0b39cea 100644 --- a/src/client/gamewindow.cc +++ b/src/client/gamewindow.cc @@ -402,6 +402,11 @@ void GameWindow::draw() gamewindow_launchbutton->hide(); gamewindow_freeflightbutton->show(); + if (core::localplayer()->autopilot_target()) { + gamewindow_freeflightbutton->enable(); + } else { + gamewindow_freeflightbutton->disable(); + } gamewindow_gotobutton->show(); gamewindow_dockbutton->show(); gamewindow_formationbutton->show(); |