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:
a3a4009
)
Fix on_generate minp/maxp (was broken due to chunkymapgen)
author
Perttu Ahola
<celeron55@gmail.com>
Wed, 28 Mar 2012 20:11:28 +0000
(23:11 +0300)
committer
Perttu Ahola
<celeron55@gmail.com>
Wed, 28 Mar 2012 20:11:28 +0000
(23:11 +0300)
src/server.cpp
patch
|
blob
|
history
diff --git
a/src/server.cpp
b/src/server.cpp
index d3c1218e73c6997d4ade313411e441cafec3af11..ff250596df6855d068cdc3eb5031267459893808 100644
(file)
--- a/
src/server.cpp
+++ b/
src/server.cpp
@@
-280,8
+280,9
@@
void * EmergeThread::Thread()
Do some post-generate stuff
*/
- v3s16 minp = block->getPos()*MAP_BLOCKSIZE;
- v3s16 maxp = minp + v3s16(1,1,1)*(MAP_BLOCKSIZE-1);
+ v3s16 minp = data.blockpos_min*MAP_BLOCKSIZE;
+ v3s16 maxp = data.blockpos_max*MAP_BLOCKSIZE +
+ v3s16(1,1,1)*(MAP_BLOCKSIZE-1);
scriptapi_environment_on_generated(m_server->m_lua,
minp, maxp, mapgen::get_blockseed(data.seed, minp));