fix formatting issues in inverted threshold code

This commit is contained in:
AdenKoperczak 2024-12-09 18:49:23 -05:00
parent 7c884fec55
commit 1c4551522d

View file

@ -136,7 +136,8 @@ void PlacefileText::Impl::RenderTextDrawItem(
std::chrono::system_clock::now() : std::chrono::system_clock::now() :
selectedTime_; selectedTime_;
const bool thresholdMet = mapDistance_ <= di->threshold_ || const bool thresholdMet =
mapDistance_ <= di->threshold_ ||
((double) di->threshold_ < 0.0 && mapDistance_ >= -(di->threshold_)); ((double) di->threshold_ < 0.0 && mapDistance_ >= -(di->threshold_));
if ((!thresholded_ || thresholdMet) && if ((!thresholded_ || thresholdMet) &&