From af150d1a56ee49696b7dc1fdf00675a910a70217 Mon Sep 17 00:00:00 2001 From: Stuart Buchanan Date: Wed, 4 Jan 2012 21:47:35 +0000 Subject: [PATCH] Only initialize MP subsystem if a txhost is set. --- src/MultiPlayer/multiplaymgr.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/MultiPlayer/multiplaymgr.cxx b/src/MultiPlayer/multiplaymgr.cxx index d7a839706..d034f7a1c 100644 --- a/src/MultiPlayer/multiplaymgr.cxx +++ b/src/MultiPlayer/multiplaymgr.cxx @@ -432,12 +432,16 @@ FGMultiplayMgr::init (void) << txAddress << "'. Multiplayer mode disabled."); return; } else { - SG_LOG(SG_NETWORK, SG_INFO, "FGMultiplayMgr - have server"); + SG_LOG(SG_NETWORK, SG_INFO, "FGMultiplayMgr - have server"); mHaveServer = true; } if (rxPort <= 0) rxPort = txPort; + } else { + SG_LOG(SG_NETWORK, SG_INFO, "FGMultiplayMgr - no transmission address. Multiplayer mode disabled"); + return; } + if (rxPort <= 0) { SG_LOG(SG_NETWORK, SG_INFO, "FGMultiplayMgr - No receiver port. Multiplayer mode disabled.");