]> git.mxchange.org Git - flightgear.git/blobdiff - src/Network/multiplay.cxx
Expose the "play-audio-command" through the props/telnet interface.
[flightgear.git] / src / Network / multiplay.cxx
index 6772f07c1beaae3453d88b80b3d5f90ccc63189c..ebf511f88554db75b784ee74f36c64724d42efa8 100644 (file)
@@ -20,6 +20,9 @@
 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 //
 
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
 
 #include <simgear/compiler.h>
 
@@ -104,7 +107,7 @@ bool FGMultiplay::process() {
 
   if (get_direction() == SG_IO_IN) {
 
-    globals->get_multiplayer_rx_mgr()->ProcessData();
+    globals->get_multiplayer_mgr()->ProcessData();
 
   } else if (get_direction() == SG_IO_OUT) {
 
@@ -117,7 +120,7 @@ bool FGMultiplay::process() {
     sgQuat PlayerOrientation;
     sgMatrixToQuat(PlayerOrientation, posTrans);
 
-    globals->get_multiplayer_tx_mgr()->SendMyPosition(PlayerOrientation, PlayerPosition);
+    globals->get_multiplayer_mgr()->SendMyPosition(PlayerOrientation, PlayerPosition);
 
   }
 
@@ -134,11 +137,11 @@ bool FGMultiplay::close() {
 
   if (get_direction() == SG_IO_IN) {
 
-    globals->get_multiplayer_rx_mgr()->Close();
+    globals->get_multiplayer_mgr()->Close();
 
   } else if (get_direction() == SG_IO_OUT) {
 
-    globals->get_multiplayer_tx_mgr()->Close();
+//    globals->get_multiplayer_mgr()->Close();
 
   }