From c9d2243960f2a0196fa8a8185bcf73ab0bcc75b1 Mon Sep 17 00:00:00 2001 From: mfranz Date: Tue, 3 Jun 2008 15:57:33 +0000 Subject: [PATCH] Anders GIDENSTAM: "only override the receive port when it isn't set already" --- src/MultiPlayer/multiplaymgr.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/MultiPlayer/multiplaymgr.cxx b/src/MultiPlayer/multiplaymgr.cxx index 7a0e71847..b83559776 100644 --- a/src/MultiPlayer/multiplaymgr.cxx +++ b/src/MultiPlayer/multiplaymgr.cxx @@ -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,