Re: [Fixes v6.1] Tolerance level in step_p****agiere()
Reply #3 –
James,
I can see that you have changed the code for tolerance. This is not a problem. But can you please refrain from such long and obscure program statement, such as the line below?
const uint16 tolerance = wtyp != warenbauer_t::p****agiere ? 0 : range == local ? simrand(welt->get_einstellungen()->get_max_local_tolerance()) + welt->get_einstellungen()->get_min_local_tolerance() : range == midrange ? simrand(welt->get_einstellungen()->get_max_midrange_tolerance()) + welt->get_einstellungen()->get_min_midrange_tolerance() : simrand(welt->get_einstellungen()->get_max_longdistance_tolerance()) + welt->get_einstellungen()->get_min_longdistance_tolerance();
I am sorry. I don't have the patience to decode and understand such unclear code.
Edit :
If you have reviewed my code for tolerance level, you should know that I have already added static const variables for the various tolerance levels in the beginning part of step_p****agiere(). Please make use of them, instead of repeatedly calling welt->get_einstellungen()->get_something() again and again.
Knightly