Ref T172, adjustments for ecosystem

* stricter equal comparison ("changed" flag)
* set VATSIM server type and ecosystem in VATSIM reader
This commit is contained in:
Klaus Basan
2017-12-28 18:34:33 +01:00
parent 5f90497626
commit 1f9337609a
3 changed files with 9 additions and 6 deletions

View File

@@ -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;