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
- Branch
- /ps/trunk
- Lint
Lint OK - Unit
No Unit Test Coverage - Build Status
Buildable 5715 Build 9599: Vulcan Build Build 9598: arc lint + arc unit
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 | Math.max |