projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a4ef87
)
Remove usage of mapgen::add_random_objects(block)
author
Perttu Ahola
<celeron55@gmail.com>
Tue, 31 Jan 2012 18:26:08 +0000
(20:26 +0200)
committer
Perttu Ahola
<celeron55@gmail.com>
Tue, 27 Mar 2012 16:01:52 +0000
(19:01 +0300)
src/map.cpp
patch
|
blob
|
history
diff --git
a/src/map.cpp
b/src/map.cpp
index 2467c33e51e2c8e86a722663a688ff6825f46173..217bdfcc76795863cd875c645b2dd7fbd9c521b5 100644
(file)
--- 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
*/