summaryrefslogtreecommitdiff
path: root/src/voxelalgorithms.cpp
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2014-06-09 13:29:22 +0200
committersapier <Sapier at GMX dot net>2014-06-23 00:13:41 +0200
commit8ad83767cfccc2d1a42bdc4af087ec013d7554a0 (patch)
tree5bda363c676485fb85252aac785a4456e191147e /src/voxelalgorithms.cpp
parentd5de0cbf71d65ce586b3ab2469f2061ccc4b506a (diff)
downloadminetest-8ad83767cfccc2d1a42bdc4af087ec013d7554a0.tar.gz
minetest-8ad83767cfccc2d1a42bdc4af087ec013d7554a0.tar.bz2
minetest-8ad83767cfccc2d1a42bdc4af087ec013d7554a0.zip
Remove emerge and speedup addArea by using memcopy instead of one by one assignment
Diffstat (limited to 'src/voxelalgorithms.cpp')
-rw-r--r--src/voxelalgorithms.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/voxelalgorithms.cpp b/src/voxelalgorithms.cpp
index 14638a827..f067a221a 100644
--- a/src/voxelalgorithms.cpp
+++ b/src/voxelalgorithms.cpp
@@ -46,7 +46,7 @@ void clearLightAndCollectSources(VoxelManipulator &v, VoxelArea a,
VoxelArea required_a = a;
required_a.pad(v3s16(0,0,0));
// Make sure we have access to it
- v.emerge(a);
+ v.addArea(a);
for(s32 x=a.MinEdge.X; x<=a.MaxEdge.X; x++)
for(s32 z=a.MinEdge.Z; z<=a.MaxEdge.Z; z++)
@@ -85,7 +85,7 @@ SunlightPropagateResult propagateSunlight(VoxelManipulator &v, VoxelArea a,
VoxelArea required_a = a;
required_a.pad(v3s16(0,1,0));
// Make sure we have access to it
- v.emerge(a);
+ v.addArea(a);
s16 max_y = a.MaxEdge.Y;
s16 min_y = a.MinEdge.Y;