aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-11-25 18:17:59 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-11-29 19:13:51 +0200
commitfdf6eecd59df8608d93faff369d19a9c1868c16a (patch)
tree8084c4e058dbb0e50f62822252af59575f496334 /src
parent651657edfd2912d045f0d49dde550b551c817760 (diff)
downloadminetest-fdf6eecd59df8608d93faff369d19a9c1868c16a.tar.gz
minetest-fdf6eecd59df8608d93faff369d19a9c1868c16a.tar.bz2
minetest-fdf6eecd59df8608d93faff369d19a9c1868c16a.zip
Make map generator more responsive
Diffstat (limited to 'src')
-rw-r--r--src/mapgen.cpp2
-rw-r--r--src/server.cpp6
2 files changed, 6 insertions, 2 deletions
diff --git a/src/mapgen.cpp b/src/mapgen.cpp
index 4688a87c4..f1e109b2d 100644
--- a/src/mapgen.cpp
+++ b/src/mapgen.cpp
@@ -1534,7 +1534,7 @@ void make_block(BlockMakeData *data)
// Maximum amount of ground above the bottom of the central block
s16 maximum_ground_depth = maximum_groundlevel - node_min.Y;
- #if 0
+ #if 1
/*
Special case for high air or water: Just fill with air and water.
*/
diff --git a/src/server.cpp b/src/server.cpp
index 100497b61..83412abfb 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -688,7 +688,11 @@ void RemoteClient::GetNextBlocks(Server *server, float dtime,
//if(server->m_emerge_queue.peerItemCount(peer_id) < 1)
// Allow two blocks in queue per client
//if(server->m_emerge_queue.peerItemCount(peer_id) < 2)
- if(server->m_emerge_queue.peerItemCount(peer_id) < 25)
+ s32 max_emerge = 25;
+ // Make it more responsive when needing to generate stuff
+ if(surely_not_found_on_disk)
+ max_emerge = 5;
+ if(server->m_emerge_queue.peerItemCount(peer_id) < max_emerge)
{
//infostream<<"Adding block to emerge queue"<<std::endl;