Include the first and last endpoint of an arc.
Details
Details
Be careful about dividing by zero.
Agree.
Diff Detail
Diff Detail
- Repository
- rP 0 A.D. Public Repository
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Comment Actions
Doing the rounding inside the function would ensure that we don't divide by something that invalidates the uniform distribution.
Can commit if you made sure it works as intended.
binaries/data/mods/public/maps/random/rmgen/math.js | ||
---|---|---|
52 ↗ | (On Diff #6288) | Math.max |