# include <config.h>
#endif
+/*
+
#ifdef HAVE_WINDOWS_H
# include <windows.h>
#endif
}
#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);
- HUD_TextList.add( fgText( 40, 18 ,fgd_str) );
+ 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) );
}