aboutsummaryrefslogtreecommitdiff
path: root/src/noise.h
diff options
context:
space:
mode:
authorJozef Behran <jozuejozef@gmail.com>2019-04-07 12:08:27 -0500
committerSmallJoker <SmallJoker@users.noreply.github.com>2019-04-07 19:08:27 +0200
commit0c90ab4f6c8f0e4ddb1e674736bec5165278327d (patch)
treeb2ef3976fc9430142e6f69942e2d8133af8d1505 /src/noise.h
parent25f231a0e023b0ace5604f167b5189529bd2598f (diff)
downloadminetest-0c90ab4f6c8f0e4ddb1e674736bec5165278327d.tar.gz
minetest-0c90ab4f6c8f0e4ddb1e674736bec5165278327d.tar.bz2
minetest-0c90ab4f6c8f0e4ddb1e674736bec5165278327d.zip
Optimize random turns in dungeongen (#8129)
It turns out there is no need to return the new value and preserve the old one in random_turn, the procedure can be made to modify the value in-place. This saves quite a bunch of parameter and return value copying.
Diffstat (limited to 'src/noise.h')
0 files changed, 0 insertions, 0 deletions