Ref T129, prephase formatting

This commit is contained in:
Klaus Basan
2017-09-30 04:41:42 +02:00
committed by Mathew Sutcliffe
parent e5d07128ae
commit 4be7a61922
4 changed files with 122 additions and 121 deletions

View File

@@ -300,9 +300,9 @@ namespace BlackCore
if (clientType.startsWith('p'))
{
// Pilot section
const double groundspeed = clientPartsMap["groundspeed"].toDouble();
const double groundspeedKts = clientPartsMap["groundspeed"].toDouble();
CAircraftSituation situation(position);
situation.setGroundSpeed(CSpeed(groundspeed, CSpeedUnit::kts()));
situation.setGroundSpeed(CSpeed(groundspeedKts, CSpeedUnit::kts()));
CSimulatedAircraft currentAircraft(user.getCallsign().getStringAsSet(), user, situation);
QString aircraftIcaoCode = clientPartsMap["planned_aircraft"];