mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-11 14:45:33 +08:00
Ref T778, also update sim.data if elevation did change
Use ISimulator::isEqualLastSent in equalPbhVectorAltitudeElevation
This commit is contained in:
committed by
Mat Sutcliffe
parent
46d417c5a2
commit
cc887ea0f8
@@ -467,6 +467,13 @@ namespace BlackMisc
|
||||
return c == 0;
|
||||
}
|
||||
|
||||
bool CAircraftSituation::equalPbhVectorAltitudeElevation(const CAircraftSituation &other) const
|
||||
{
|
||||
if (!this->equalPbhVectorAltitude(other)) { return false; }
|
||||
const int c = this->getGroundElevation().compare(other.getGroundElevation());
|
||||
return c == 0;
|
||||
}
|
||||
|
||||
void CAircraftSituation::setNull()
|
||||
{
|
||||
m_position.setNull();
|
||||
|
||||
Reference in New Issue
Block a user