Add "All" location type for audio alerts

This commit is contained in:
Dan Paulat 2024-05-09 00:22:45 -05:00
parent 886c92a485
commit 075d65a535
3 changed files with 4 additions and 3 deletions

View file

@ -132,12 +132,11 @@ void AlertManager::Impl::HandleAlert(const types::TextEventKey& key,
continue;
}
bool activeAtLocation = false;
bool activeAtLocation = (locationMethod == types::LocationMethod::All);
if (locationMethod == types::LocationMethod::Fixed ||
locationMethod == types::LocationMethod::Track)
{
// Determine if the alert is active at the current coordinte
auto alertCoordinates = segment->codedLocation_->coordinates();