diff options
author | Stijn Buys <ingar@osirion.org> | 2013-11-12 21:09:30 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2013-11-12 21:09:30 +0000 |
commit | f192b3019662e9ca6805992ba5e879e5b50b0958 (patch) | |
tree | 06b67d800eabfeb588c170017e1f6019487cd8de /src/client/gamewindow.cc | |
parent | ad8f2fe096b2bca7294f07635675f30b94b2977a (diff) |
Support for player autopilot terget next to mission target,
bumped network protocol version to 28,
disable freeflight button if there is no autopilot target.
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(); |