mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-11-01 13:30:06 +00:00
add inverted threshold to placefile text
This commit is contained in:
parent
3562edcb7a
commit
7c884fec55
1 changed files with 4 additions and 1 deletions
|
|
@ -136,7 +136,10 @@ void PlacefileText::Impl::RenderTextDrawItem(
|
||||||
std::chrono::system_clock::now() :
|
std::chrono::system_clock::now() :
|
||||||
selectedTime_;
|
selectedTime_;
|
||||||
|
|
||||||
if ((!thresholded_ || mapDistance_ <= di->threshold_) &&
|
const bool thresholdMet = mapDistance_ <= di->threshold_ ||
|
||||||
|
((double)di->threshold_ < 0.0 && mapDistance_ >= -(di->threshold_));
|
||||||
|
|
||||||
|
if ((!thresholded_ || thresholdMet) &&
|
||||||
(di->startTime_ == std::chrono::system_clock::time_point {} ||
|
(di->startTime_ == std::chrono::system_clock::time_point {} ||
|
||||||
(di->startTime_ <= selectedTime && selectedTime < di->endTime_)))
|
(di->startTime_ <= selectedTime && selectedTime < di->endTime_)))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue