Add inverted threshold to mouse picking for placefiles.

This commit is contained in:
AdenKoperczak 2024-12-19 09:31:55 -05:00
parent bef8628bb6
commit ecf7579d8e
2 changed files with 8 additions and 4 deletions

View file

@ -737,8 +737,10 @@ bool PlacefileIcons::RunMousePicking(
units::length::nautical_miles<double> {icon.di_->threshold_}
.value())) < 999 &&
// Map distance is beyond the threshold
icon.di_->threshold_ < mapDistance) ||
// Map distance is beyond/within the threshold
icon.di_->threshold_ < mapDistance &&
(icon.di_->threshold_.value() >= 0.0 ||
-(icon.di_->threshold_) > mapDistance)) ||
(
// Line has a start time

View file

@ -544,8 +544,10 @@ bool PlacefileLines::RunMousePicking(
units::length::nautical_miles<double> {line.di_->threshold_}
.value())) < 999 &&
// Map distance is beyond the threshold
line.di_->threshold_ < mapDistance) ||
// Map distance is beyond/within the threshold
line.di_->threshold_ < mapDistance &&
(line.di_->threshold_.value() >= 0.0 ||
-(line.di_->threshold_) > mapDistance)) ||
(
// Line has a start time