fgSetBool("/sim/multiplay/online", false);
- if (!fgGetBool("/sim/ai/enabled"))
- {
- // multiplayer depends on AI module
- fgSetBool("/sim/ai/enabled", true);
- }
-
//////////////////////////////////////////////////
// Set members from property values
//////////////////////////////////////////////////
if (rxPort <= 0)
rxPort = txPort;
} else {
- SG_LOG(SG_NETWORK, SG_ALERT, "Cannot enable multiplayer mode: missing a valid server address.");
+ SG_LOG(SG_NETWORK, SG_INFO, "FGMultiplayMgr - multiplayer mode disabled (no MP server specificed).");
return;
}
mInitialised = true;
SG_LOG(SG_NETWORK, SG_ALERT, "Multiplayer mode active!");
+
+ if (!fgGetBool("/sim/ai/enabled"))
+ {
+ // multiplayer depends on AI module
+ fgSetBool("/sim/ai/enabled", true);
+ }
} // FGMultiplayMgr::init()
//////////////////////////////////////////////////////////////////////