Send correct SimType to FSD server depending which plugin is loaded

This commit is contained in:
Roland Winklmeier
2018-01-22 14:08:32 +01:00
parent 7edcc02f15
commit 2b2813af20

View File

@@ -375,9 +375,17 @@ namespace BlackCore
VatSimType CNetworkVatlib::convertToSimType(CSimulatorPluginInfo &simInfo) VatSimType CNetworkVatlib::convertToSimType(CSimulatorPluginInfo &simInfo)
{ {
//! \fixme Define recognized simulators somewhere */ //! \fixme Define recognized simulators somewhere */
if (simInfo.getSimulator() == "fs9" || simInfo.getSimulator() == "fsx") if (simInfo.getSimulator() == "fs9")
{ {
return vatSimTypeMSFS95; return vatSimTypeMSFS2004;
}
else if (simInfo.getSimulator() == "fsx")
{
return vatSimTypeMSFSX;
}
else if (simInfo.getSimulator() == "p3d")
{
return vatSimTypeP3Dv1;
} }
else if (simInfo.getSimulator() == "xplane") else if (simInfo.getSimulator() == "xplane")
{ {