mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 20:40:29 +08:00
Ref T273, high level functions to compare "equal" situations
Remark: "==" compares a lot of attributes, those will only compare values to determine equal PBH/vector ...
This commit is contained in:
@@ -68,6 +68,13 @@ namespace BlackMisc
|
||||
return this->getPartsDetails() == NotSet && m_flapsPercentage < 0;
|
||||
}
|
||||
|
||||
bool CAircraftParts::equalValues(const CAircraftParts &other) const
|
||||
{
|
||||
// currently same as some values are diabled for comparison
|
||||
// but that could change in future
|
||||
return other == *this;
|
||||
}
|
||||
|
||||
const CAircraftParts &CAircraftParts::null()
|
||||
{
|
||||
static const CAircraftParts null(-1);
|
||||
|
||||
Reference in New Issue
Block a user