[Bug] RandCoordsInRange

Started by Sorrontis, January 08, 2017, 03:47:38 PM

Previous topic - Next topic

Sorrontis

While working with RandCoordsInRange

I noticed that  the coords are not in a full circle's range, only partially. I tested it with:

72 72 40 RandCoordsInRange 1 Setland

Map attached, no errors in log. Just let it run for a while.
"If you want others to be happy, practice compassion. If you want to be happy, practice compassion."

knucracker

There was a typo in the implementation of that function that was messing up the bounds checking.  Just fixed and will go out in tonight's build.

Sorrontis

"If you want others to be happy, practice compassion. If you want to be happy, practice compassion."