]> git.mxchange.org Git - flightgear.git/commitdiff
Remember MP online status throughout a sim reset.
authorThorstenB <brehmt@gmail.com>
Thu, 1 Nov 2012 14:49:45 +0000 (15:49 +0100)
committerThorstenB <brehmt@gmail.com>
Thu, 1 Nov 2012 14:49:45 +0000 (15:49 +0100)
src/MultiPlayer/multiplaymgr.cxx

index 2d2d38fa0d7634458163f0eb11946cb961706530..91b4d43ab5cd74752a5e4ad492b5ee1be5d230a7 100644 (file)
@@ -404,7 +404,9 @@ FGMultiplayMgr::init (void)
     return;
   }
 
-  fgSetBool("/sim/multiplay/online", false);
+  SGPropertyNode* propOnline = fgGetNode("/sim/multiplay/online", true);
+  propOnline->setBoolValue(false);
+  propOnline->setAttribute(SGPropertyNode::PRESERVE, true);
 
   //////////////////////////////////////////////////
   //  Set members from property values