mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 02:55:44 +08:00
Issue #79 Restore error message for unknown models
This was lost due to the model string case sensitivity lookup step.
This commit is contained in:
@@ -305,6 +305,7 @@ namespace XSwiftBus
|
|||||||
XPMPPlaneID id = nullptr;
|
XPMPPlaneID id = nullptr;
|
||||||
if (modelName.empty() || m_modelStrings.count(modelName) == 0)
|
if (modelName.empty() || m_modelStrings.count(modelName) == 0)
|
||||||
{
|
{
|
||||||
|
DEBUG_LOG("Model " + modelName + " is unknown, falling back to basic xpmp2 model matching");
|
||||||
id = XPMPCreatePlane(aircraftIcao.c_str(), airlineIcao.c_str(), livery.c_str());
|
id = XPMPCreatePlane(aircraftIcao.c_str(), airlineIcao.c_str(), livery.c_str());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user