mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 19:10:06 +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,8 +136,9 @@ 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 =
|
||||||
((double)di->threshold_ < 0.0 && mapDistance_ >= -(di->threshold_));
|
mapDistance_ <= di->threshold_ ||
|
||||||
|
((double) di->threshold_ < 0.0 && mapDistance_ >= -(di->threshold_));
|
||||||
|
|
||||||
if ((!thresholded_ || thresholdMet) &&
|
if ((!thresholded_ || thresholdMet) &&
|
||||||
(di->startTime_ == std::chrono::system_clock::time_point {} ||
|
(di->startTime_ == std::chrono::system_clock::time_point {} ||
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue