<< 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.");
}
double sim_time = globals->get_sim_time_sec();
- static double lastTime = 0.0;
+// static double lastTime = 0.0;
// SG_LOG(SG_GENERAL, SG_INFO, "actual dt=" << sim_time - lastTime);
- lastTime = sim_time;
+// lastTime = sim_time;
FlightProperties ifce;
mp->setCallSign(callsign);
mMultiPlayerMap[callsign] = mp;
- FGAIManager *aiMgr = (FGAIManager*)globals->get_subsystem("ai_model");
+ FGAIManager *aiMgr = (FGAIManager*)globals->get_subsystem("ai-model");
if (aiMgr) {
aiMgr->attach(mp);