]> git.mxchange.org Git - flightgear.git/commitdiff
Anders GIDENSTAM: "only override the receive port when it isn't set already"
authormfranz <mfranz>
Tue, 3 Jun 2008 15:57:33 +0000 (15:57 +0000)
committermfranz <mfranz>
Tue, 3 Jun 2008 15:57:33 +0000 (15:57 +0000)
src/MultiPlayer/multiplaymgr.cxx

index 7a0e71847af5c970bf3892aafdf97190c841e0ca..b835597762bee3ff2eb6bd48c0e7d821c913e956 100644 (file)
@@ -247,7 +247,8 @@ FGMultiplayMgr::init (void)
     } else {
       mHaveServer = true;
     }
-    rxPort = txPort;
+    if (rxPort <= 0)
+      rxPort = txPort;
   }
   if (rxPort <= 0) {
     SG_LOG(SG_NETWORK, SG_ALERT,