]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATC/ground.cxx
Daniyar ATADJANOV:
[flightgear.git] / src / ATC / ground.cxx
index de018cae663eafa67ea0dde33dfc827898fffe7e..4adfa9958c821c83c51f6b54467f2773b573cb0c 100644 (file)
@@ -16,7 +16,7 @@
 //
 // You should have received a copy of the GNU General Public License
 // along with this program; if not, write to the Free Software
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
 #ifdef HAVE_CONFIG_H
 #  include <config.h>
 #include STL_FSTREAM
 
 #include "ground.hxx"
-#include "ATCmgr.hxx"
 #include "ATCutils.hxx"
-#include "ATCdisplay.hxx"
 #include "AILocalTraffic.hxx"
+#include "ATCmgr.hxx"
 
 SG_USING_STD(ifstream);
 SG_USING_STD(cout);
@@ -320,7 +319,7 @@ void FGGround::Update(double dt) {
                                // eg " taxi holding point G2 runway "
                                trns += ConvertRwyNumToSpokenString(activeRwy);
                                if(_display) {
-                                       globals->get_ATC_display()->RegisterSingleMessage(trns, 0);
+                                       fgSetString("/sim/messages/ground", trns.c_str());
                                }
                                g->planePtr->RegisterTransmission(1);   // cleared to taxi
                                g->clearanceCounter = 0.0;
@@ -338,7 +337,7 @@ void FGGround::Update(double dt) {
                        sprintf(buf, "%.2f", f);
                        trns += buf;
                        if(_display) {
-                               globals->get_ATC_display()->RegisterSingleMessage(trns, 0);
+                               fgSetString("/sim/messages/ground", trns.c_str());
                        }
                        g->planePtr->RegisterTransmission(2);   // contact tower
                        delete *ground_traffic_itr;