Only initialize MP subsystem if a txhost is set.
This commit is contained in:
parent
a3c243f266
commit
af150d1a56
1 changed files with 5 additions and 1 deletions
|
@ -432,12 +432,16 @@ FGMultiplayMgr::init (void)
|
||||||
<< txAddress << "'. Multiplayer mode disabled.");
|
<< txAddress << "'. Multiplayer mode disabled.");
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
SG_LOG(SG_NETWORK, SG_INFO, "FGMultiplayMgr - have server");
|
SG_LOG(SG_NETWORK, SG_INFO, "FGMultiplayMgr - have server");
|
||||||
mHaveServer = true;
|
mHaveServer = true;
|
||||||
}
|
}
|
||||||
if (rxPort <= 0)
|
if (rxPort <= 0)
|
||||||
rxPort = txPort;
|
rxPort = txPort;
|
||||||
|
} else {
|
||||||
|
SG_LOG(SG_NETWORK, SG_INFO, "FGMultiplayMgr - no transmission address. Multiplayer mode disabled");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rxPort <= 0) {
|
if (rxPort <= 0) {
|
||||||
SG_LOG(SG_NETWORK, SG_INFO,
|
SG_LOG(SG_NETWORK, SG_INFO,
|
||||||
"FGMultiplayMgr - No receiver port. Multiplayer mode disabled.");
|
"FGMultiplayMgr - No receiver port. Multiplayer mode disabled.");
|
||||||
|
|
Loading…
Add table
Reference in a new issue