mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
Ref T172, adjustments for ecosystem
* stricter equal comparison ("changed" flag)
* set VATSIM server type and ecosystem in VATSIM reader
This commit is contained in:
@@ -33,8 +33,7 @@ namespace BlackCore
|
||||
|
||||
bool CVatsimSetup::setServers(const CServerList &fsdServers, const CServerList &voiceServers)
|
||||
{
|
||||
const bool changed = !this->getVoiceServers().equalsByKeys(voiceServers, &CServer::getName, &CServer::getAddress) ||
|
||||
!this->getFsdServers().equalsByKeys(fsdServers, &CServer::getName, &CServer::getAddress);
|
||||
const bool changed = (this->getVoiceServers() != voiceServers || this->getFsdServers() != fsdServers);
|
||||
this->setFsdServers(fsdServers);
|
||||
this->setVoiceServers(voiceServers);
|
||||
return changed;
|
||||
|
||||
Reference in New Issue
Block a user