mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-06 02:16:04 +08:00
Treat an OBJ8_AIRCRAFT command with too many arguments as merely a warning.
The aircraft can still be successfully loaded.
This commit is contained in:
committed by
Klaus Basan
parent
61d933be12
commit
9c07326462
@@ -499,9 +499,12 @@ namespace BlackMisc
|
|||||||
// OBJ8_AIRCRAFT <path>
|
// OBJ8_AIRCRAFT <path>
|
||||||
if (tokens.size() != 2)
|
if (tokens.size() != 2)
|
||||||
{
|
{
|
||||||
const CStatusMessage m = CStatusMessage(this).error(u"%1/xsb_aircraft.txt Line %2 : OBJ8_AIRCARFT command requires 1 argument.") << path << lineNum;
|
const CStatusMessage m = CStatusMessage(this).warning(u"%1/xsb_aircraft.txt Line %2 : OBJ8_AIRCARFT command requires 1 argument.") << path << lineNum;
|
||||||
m_loadingMessages.push_back(m);
|
m_loadingMessages.push_back(m);
|
||||||
return false;
|
if (tokens.size() < 2)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Submodule src/xswiftbus/libxplanemp updated: c83e847308...5c9b95d058
Reference in New Issue
Block a user