diff options
author | Paramat <paramat@users.noreply.github.com> | 2019-08-24 20:06:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-24 20:06:31 +0100 |
commit | b53a60c8d5757dc2298257d2c808f731697c05fd (patch) | |
tree | 3728765679ff5402ff243d8652d514bd29aea464 /misc | |
parent | fbc8724d59e8ad7bff06f6764fa06612283a903a (diff) | |
download | minetest-b53a60c8d5757dc2298257d2c808f731697c05fd.tar.gz minetest-b53a60c8d5757dc2298257d2c808f731697c05fd.tar.bz2 minetest-b53a60c8d5757dc2298257d2c808f731697c05fd.zip |
Mapgen v6: Various mudflow code improvements and bugfixes (#8805)
Calculate 'i' inside 'y' loop to avoid 'i' and 'y' becoming
out of step due to the uses of 'continue'.
Simplify calculation of 'p2d' when coordinates are inverted.
Remove some unnecessary and unreliable 'index out of
voxelmanip' checks.
Move calculation of '&em' out of loops.
For 'Loop further down until not air' code, use y coordinate
to detect being out of voxelmanip, instead of checking index
which did not detect that.
Add and improve comments.
Indent the 'for (;; y--) {' loop.
Improve format and fix codestyle issues.
Diffstat (limited to 'misc')
0 files changed, 0 insertions, 0 deletions