1
0
Fork 0

Launcher diagram: faster boundary computation.

No need to completely rebuild in these cases.
This commit is contained in:
James Turner 2017-03-16 22:42:58 +00:00
parent a1bc99ec84
commit 6880761f7b

View file

@ -189,7 +189,8 @@ void AirportDiagram::addRunway(FGRunwayRef rwy)
r.runway = rwy;
m_runways.append(r);
recomputeBounds(false);
extendBounds(r.p1);
extendBounds(r.p2);
update();
}
@ -224,7 +225,7 @@ void AirportDiagram::addParking(FGParkingRef park)
{
ParkingData pd = { project(park->geod()), park };
m_parking.push_back(pd);
recomputeBounds(false);
extendBounds(pd.pt);
update();
}
@ -232,7 +233,7 @@ void AirportDiagram::addHelipad(FGHelipadRef pad)
{
HelipadData pd = { project(pad->geod()), pad };
m_helipads.push_back(pd);
recomputeBounds(false);
extendBounds(pd.pt);
update();
}