]> git.mxchange.org Git - flightgear.git/blobdiff - src/Network/net_hud.cxx
Set up the model view matrix exactly as ssg does it before drawing sky, stars
[flightgear.git] / src / Network / net_hud.cxx
index 6846d39cfadc5eb6d7451d0a609854d2c5e91861..614f08708940e7600a1b11bbe3b21e7deeab8669 100644 (file)
@@ -25,6 +25,8 @@
 #  include <config.h>
 #endif
 
+/*
+
 #ifdef HAVE_WINDOWS_H
 #  include <windows.h>
 #endif
@@ -59,20 +61,22 @@ extern "C" {
 }
 #endif
 
+*/
+
+#include <Main/options.hxx>
 #include <Cockpit/hud.hxx>
 
-int net_hud_display = 0;
+extern char *net_callsign;
+
 
 void net_hud_update(){
- char fgd_str[80];
- char *fgd_pilot;
- float fgd_lon, fgd_lat, fgd_alt;
+ static char fgd_str[80];
+ static float fgd_lon, fgd_lat, fgd_alt;
  
-  sprintf( fgd_pilot, "%s", current_options.get_net_id().c_str() );
   fgd_lon = get_longitude();
   fgd_lat = get_latitude();
   fgd_alt = get_altitude();
-  sprintf(fgd_str,"Found %s %3.3f %3.3f", fgd_pilot, fgd_lat, fgd_lon);
-//  printf("Lon: %.3f Lat: %.3f Alt: %.f\n", fgd_lon, fgd_lat, fgd_alt);
+  sprintf(fgd_str,"Found %s %3.3f %3.3f", net_callsign, fgd_lat, fgd_lon);
+//  HUD_TextList.add( fgText( 40, 18, net_callsign) );
   HUD_TextList.add( fgText( 40, 18, fgd_str) );
 }