mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
Reselect ATC station if data are updated, and update the ATIS info
This commit is contained in:
committed by
Mat Sutcliffe
parent
b87d0f5f15
commit
eb014639fe
@@ -58,7 +58,7 @@ namespace BlackMisc
|
||||
|
||||
bool CAtcStationList::updateIfMessageChanged(const CInformationMessage &im, const CCallsign &callsign, bool overrideWithNewer)
|
||||
{
|
||||
const CInformationMessage::InformationType t = im.getType();
|
||||
const CInformationMessage::InformationType type = im.getType();
|
||||
|
||||
// for loop just to get reference
|
||||
bool unequal = false;
|
||||
@@ -66,7 +66,7 @@ namespace BlackMisc
|
||||
{
|
||||
if (station.getCallsign() != callsign) { continue; }
|
||||
|
||||
const CInformationMessage m = station.getInformationMessage(t);
|
||||
const CInformationMessage m = station.getInformationMessage(type);
|
||||
if (m.getType() == CInformationMessage::Unspecified) { break; }
|
||||
|
||||
if (m.getMessage() == im.getMessage())
|
||||
|
||||
Reference in New Issue
Block a user