aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-01-31 20:26:08 +0200
committerPerttu Ahola <celeron55@gmail.com>2012-03-27 19:01:52 +0300
commit8609af54fcadef5ef4fb893e93df6dc7a4da95a0 (patch)
tree3df2a5426fe7b0f24666392189b80e37192b6b10 /src
parent9a4ef878598bf05bd2e88e44592fe21ccdb0aec6 (diff)
downloadminetest-8609af54fcadef5ef4fb893e93df6dc7a4da95a0.tar.gz
minetest-8609af54fcadef5ef4fb893e93df6dc7a4da95a0.tar.bz2
minetest-8609af54fcadef5ef4fb893e93df6dc7a4da95a0.zip
Remove usage of mapgen::add_random_objects(block)
Diffstat (limited to 'src')
-rw-r--r--src/map.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 2467c33e5..217bdfcc7 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -2262,21 +2262,6 @@ MapBlock* ServerMap::finishBlockMake(mapgen::BlockMakeData *data,
#endif
}
- // Center blocks
- for(s16 x=blockpos_min.X; x<=blockpos_max.X; x++)
- for(s16 z=blockpos_min.Z; z<=blockpos_max.Z; z++)
- for(s16 y=blockpos_min.Y; y<=blockpos_max.Y; y++)
- {
- v3s16 p(x, y, z);
- MapBlock *block = getBlockNoCreateNoEx(p);
- assert(block);
-
- /*
- Add random objects to block
- */
- mapgen::add_random_objects(block);
- }
-
/*
Go through changed blocks
*/