From f192b3019662e9ca6805992ba5e879e5b50b0958 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 12 Nov 2013 21:09:30 +0000 Subject: Support for player autopilot terget next to mission target, bumped network protocol version to 28, disable freeflight button if there is no autopilot target. --- src/client/gamewindow.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/client/gamewindow.cc') 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(); -- cgit v1.2.3