mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-29 20:55:42 +08:00
[FS9] Log. messages
This commit is contained in:
committed by
Mat Sutcliffe
parent
109827b5c4
commit
441ca41ee3
@@ -54,6 +54,7 @@ using namespace BlackMisc::Simulation;
|
|||||||
using namespace BlackMisc::Simulation::XPlane;
|
using namespace BlackMisc::Simulation::XPlane;
|
||||||
using namespace BlackMisc::Simulation::FsCommon;
|
using namespace BlackMisc::Simulation::FsCommon;
|
||||||
using namespace BlackMisc::Geo;
|
using namespace BlackMisc::Geo;
|
||||||
|
using namespace BlackMisc::Weather;
|
||||||
using namespace BlackMisc::Simulation;
|
using namespace BlackMisc::Simulation;
|
||||||
using namespace BlackMisc::Simulation::Settings;
|
using namespace BlackMisc::Simulation::Settings;
|
||||||
using namespace BlackMisc::Simulation::Data;
|
using namespace BlackMisc::Simulation::Data;
|
||||||
@@ -1125,7 +1126,7 @@ namespace BlackCore
|
|||||||
m_simulatorPlugin.second->setWeatherActivated(activated);
|
m_simulatorPlugin.second->setWeatherActivated(activated);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CContextSimulator::requestWeatherGrid(const Weather::CWeatherGrid &weatherGrid, const CIdentifier &identifier)
|
void CContextSimulator::requestWeatherGrid(const CWeatherGrid &weatherGrid, const CIdentifier &identifier)
|
||||||
{
|
{
|
||||||
if (m_debugEnabled) { CLogMessage(this, CLogCategory::contextSlot()).debug() << Q_FUNC_INFO << identifier; }
|
if (m_debugEnabled) { CLogMessage(this, CLogCategory::contextSlot()).debug() << Q_FUNC_INFO << identifier; }
|
||||||
m_weatherManager.requestWeatherGrid(weatherGrid, identifier);
|
m_weatherManager.requestWeatherGrid(weatherGrid, identifier);
|
||||||
|
|||||||
@@ -309,8 +309,7 @@ namespace BlackSimPlugin
|
|||||||
return logDirectPlayError(hr);
|
return logDirectPlayError(hr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CLogMessage(this).info(u"Callsign '%1' connected to session.") << m_callsign;
|
||||||
CLogMessage(this).debug() << m_callsign << " connected to session.";
|
|
||||||
sendMultiplayerChangePlayerPlane();
|
sendMultiplayerChangePlayerPlane();
|
||||||
sendMultiplayerPosition();
|
sendMultiplayerPosition();
|
||||||
sendMultiplayerParamaters();
|
sendMultiplayerParamaters();
|
||||||
@@ -327,7 +326,7 @@ namespace BlackSimPlugin
|
|||||||
HRESULT hr = s_ok();
|
HRESULT hr = s_ok();
|
||||||
|
|
||||||
if (m_clientStatus == Disconnected) { return hr; }
|
if (m_clientStatus == Disconnected) { return hr; }
|
||||||
CLogMessage(this).debug() << "Closing DirectPlay connection for " << m_callsign;
|
CLogMessage(this).info(u"Closing DirectPlay connection for '%1'") << m_callsign;
|
||||||
if (isFailure(hr = m_directPlayPeer->Close(0)))
|
if (isFailure(hr = m_directPlayPeer->Close(0)))
|
||||||
{
|
{
|
||||||
return logDirectPlayError(hr);
|
return logDirectPlayError(hr);
|
||||||
|
|||||||
@@ -201,7 +201,7 @@ namespace BlackSimPlugin
|
|||||||
delete fs9Client;
|
delete fs9Client;
|
||||||
m_hashFs9Clients.remove(callsign);
|
m_hashFs9Clients.remove(callsign);
|
||||||
updateAircraftRendered(callsign, false);
|
updateAircraftRendered(callsign, false);
|
||||||
CLogMessage(this).info(u"FS9: Removed aircraft %1") << callsign.toQString();
|
CLogMessage(this).info(u"FS9: Removed aircraft '%1'") << callsign.toQString();
|
||||||
return CSimulatorFsCommon::physicallyRemoveRemoteAircraft(callsign);
|
return CSimulatorFsCommon::physicallyRemoveRemoteAircraft(callsign);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user