Hi all,
You might not have noticed it yet but currently it is impossible to use a
receive port number different from the send one. If a send port is given
the same port number is used as receive port too, regardless of any user
specified receive port. The fix is simple: only override the receive port
when it isn't set already.
--- start patch
index 3a95462..35de921 100644
--- a/src/MultiPlayer/multiplaymgr.cxx
+++ b/src/MultiPlayer/multiplaymgr.cxx
@@ -247,7 +247,7 @@ FGMultiplayMgr::init (void)
} else {
mHaveServer = true;
}
- rxPort = txPort;
+ if (rxPort <= 0) rxPort = txPort;
}
if (rxPort <= 0) {
SG_LOG(SG_NETWORK, SG_ALERT,
--- end patch
Cheers,
Anders
--
---------------------------------------------------------------------------
Anders Gidenstam
WWW: http://www.gidenstam.org/FlightGear/
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel