summaryrefslogtreecommitdiff
path: root/lib/lua/src/ldo.c
diff options
context:
space:
mode:
authorParamat <paramat@users.noreply.github.com>2019-08-24 20:06:31 +0100
committerGitHub <noreply@github.com>2019-08-24 20:06:31 +0100
commitb53a60c8d5757dc2298257d2c808f731697c05fd (patch)
tree3728765679ff5402ff243d8652d514bd29aea464 /lib/lua/src/ldo.c
parentfbc8724d59e8ad7bff06f6764fa06612283a903a (diff)
downloadminetest-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 'lib/lua/src/ldo.c')
0 files changed, 0 insertions, 0 deletions