mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
feat: Implementation of the msfs2024 model mapping is ready for testing
This commit is contained in:
@@ -41,6 +41,9 @@
|
||||
#include "misc/logmessage.h"
|
||||
#include "misc/network/connectionstatus.h"
|
||||
#include "misc/network/entityflags.h"
|
||||
// TODO TZ remove afte testing
|
||||
#include "misc/network/server.h"
|
||||
// TODO TZ end remove afte testing
|
||||
#include "misc/network/serverlist.h"
|
||||
#include "misc/simulation/aircraftmodel.h"
|
||||
#include "misc/simulation/simulatedaircraft.h"
|
||||
@@ -298,8 +301,14 @@ namespace swift::gui::components
|
||||
{
|
||||
if (!m_updatePilotOnServerChanges) { return; }
|
||||
const bool vatsim = this->isVatsimNetworkTabSelected();
|
||||
const CUser user = vatsim ? this->getCurrentVatsimServer().getUser() : server.getUser();
|
||||
ui->form_Pilot->setUser(user);
|
||||
// TODO TZ remove after testing
|
||||
// const CUser user = vatsim ? this->getCurrentVatsimServer().getUser() : server.getUser();
|
||||
const CUser user =
|
||||
server.getServerType() != CServer::FSDServer ? this->getCurrentVatsimServer().getUser() : server.getUser();
|
||||
if ((vatsim && server.getServerType() != CServer::FSDServer) ||
|
||||
(!vatsim && server.getServerType() == CServer::FSDServer))
|
||||
// End remove after testing
|
||||
ui->form_Pilot->setUser(user);
|
||||
}
|
||||
|
||||
void CLoginComponent::onSimulatorStatusChanged(int status)
|
||||
|
||||
Reference in New Issue
Block a user