1
0
Fork 0

Only initialize MP subsystem if a txhost is set.

This commit is contained in:
Stuart Buchanan 2012-01-04 21:47:35 +00:00
parent a3c243f266
commit af150d1a56

View file

@ -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.");