mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 19:00:04 +00:00
fix formatting issues in inverted threshold code
This commit is contained in:
parent
7c884fec55
commit
1c4551522d
1 changed files with 3 additions and 2 deletions
|
|
@ -136,7 +136,8 @@ void PlacefileText::Impl::RenderTextDrawItem(
|
|||
std::chrono::system_clock::now() :
|
||||
selectedTime_;
|
||||
|
||||
const bool thresholdMet = mapDistance_ <= di->threshold_ ||
|
||||
const bool thresholdMet =
|
||||
mapDistance_ <= di->threshold_ ||
|
||||
((double) di->threshold_ < 0.0 && mapDistance_ >= -(di->threshold_));
|
||||
|
||||
if ((!thresholded_ || thresholdMet) &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue