From 2b2813af20b2ce34a63ec2bb5594e11e87bda4d5 Mon Sep 17 00:00:00 2001 From: Roland Winklmeier Date: Mon, 22 Jan 2018 14:08:32 +0100 Subject: [PATCH] Send correct SimType to FSD server depending which plugin is loaded --- src/blackcore/vatsim/networkvatlib.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/blackcore/vatsim/networkvatlib.cpp b/src/blackcore/vatsim/networkvatlib.cpp index 11b03e984..d94b94bc0 100644 --- a/src/blackcore/vatsim/networkvatlib.cpp +++ b/src/blackcore/vatsim/networkvatlib.cpp @@ -375,9 +375,17 @@ namespace BlackCore VatSimType CNetworkVatlib::convertToSimType(CSimulatorPluginInfo &simInfo) { //! \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") {