aboutsummaryrefslogtreecommitdiff
path: root/src/dungeongen.cpp
diff options
context:
space:
mode:
authorLoïc Blot <nerzhul@users.noreply.github.com>2017-07-26 07:35:09 +0200
committerGitHub <noreply@github.com>2017-07-26 07:35:09 +0200
commit9a17b65f26eea5b9d7176e7df205f72ed2ff6c0f (patch)
treef9f0f9100348b05c9eecfb179e0e59ab24a2d2f3 /src/dungeongen.cpp
parent0c99da4255319d898f3ed47bc7c42757df91e2df (diff)
downloadminetest-9a17b65f26eea5b9d7176e7df205f72ed2ff6c0f.tar.gz
minetest-9a17b65f26eea5b9d7176e7df205f72ed2ff6c0f.tar.bz2
minetest-9a17b65f26eea5b9d7176e7df205f72ed2ff6c0f.zip
VoxelManip cleanups (const ref, const move) + function removal (#6169)
* VoxelManip cleanups (const ref, const move) permitting to improve a little bit performance * VoxelArea: precalculate extent (performance enhancement) This permits to reduce extend high cost to zero and drop many v3s16 object creation/removal to calculate extent It rebalance the client thread update to updateFastFaceRow instead of MapBlockMesh generation This will also benefits to mapgen
Diffstat (limited to 'src/dungeongen.cpp')
-rw-r--r--src/dungeongen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dungeongen.cpp b/src/dungeongen.cpp
index 883492bab..f8859dcd0 100644
--- a/src/dungeongen.cpp
+++ b/src/dungeongen.cpp
@@ -151,7 +151,7 @@ void DungeonGen::generate(MMVManip *vm, u32 bseed, v3s16 nmin, v3s16 nmax)
void DungeonGen::makeDungeon(v3s16 start_padding)
{
- v3s16 areasize = vm->m_area.getExtent();
+ const v3s16 &areasize = vm->m_area.getExtent();
v3s16 roomsize;
v3s16 roomplace;