Open haithink opened 5 years ago
if (fabs(cur_range) <= w && w < fabs(cur_range * 2))
if w is negative, then this condition would never be satisfied, so I think this line of code should be change to if (fabs(cur_range) <= fabs(w) && fabs(w) < fabs(cur_range * 2))
if (fabs(cur_range) <= fabs(w) && fabs(w) < fabs(cur_range * 2))
if (fabs(cur_range) <= w && w < fabs(cur_range * 2))
if w is negative, then this condition would never be satisfied, so I think this line of code should be change to
if (fabs(cur_range) <= fabs(w) && fabs(w) < fabs(cur_range * 2))