]> git.mxchange.org Git - flightgear.git/blobdiff - src/NetworkOLK/network.cxx
Major property-manager rewrite, using const char * throughout
[flightgear.git] / src / NetworkOLK / network.cxx
index d145ed5abc02cec68d8077b499db0679a9553113..263f9137125fdb7568f0e5c4cf9a20b588c3611a 100644 (file)
@@ -63,6 +63,8 @@ extern "C" {
 #include <plib/sg.h>
 #include <plib/ssg.h>
 
+#include <simgear/compiler.h>
+
 #include <Main/globals.hxx>
 #include <Main/fg_props.hxx>
 
@@ -80,7 +82,7 @@ char *fg_net_init( ssgRoot *orig_scene ){
  // We enable display of netinfos only if user wishes it via cmd-line param
  net_hud_display = (net_hud_display == 0) ? 0 : 1; 
  // Get pilot's name from options, can be modified at runtime via menu
- net_callsign = (char *)(fgGetString("/sim/networking/call-sign").c_str());
+ net_callsign = (char *)(fgGetString("/sim/networking/call-sign"));
  // Disable Blast Mode -1 = Disable, 0 = Enable  
  net_blast_toggle = -1;
  // We start unregistered, we reg. later via menu to fgd