aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-02-02 09:28:46 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-02-02 09:28:46 +0200
commita75876f24870b0c092a59b29fd25c9f2b34d334e (patch)
tree3a9650e2a3143d37058c467f327c2f4520a5dc21 /src
parenta5f109dafb147c3a5965cd638cc015a34f90362c (diff)
downloadminetest-a75876f24870b0c092a59b29fd25c9f2b34d334e.tar.gz
minetest-a75876f24870b0c092a59b29fd25c9f2b34d334e.tar.bz2
minetest-a75876f24870b0c092a59b29fd25c9f2b34d334e.zip
more tweaking
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp2
-rw-r--r--src/map.cpp14
2 files changed, 10 insertions, 6 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 176cde639..ef7207894 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -346,6 +346,8 @@ Doing now:
- The server has to make sure the spawn point is not at the
changing borders of a chunk
* Add some kind of erosion and other stuff that now is possible
+* Make client to fetch stuff asynchronously
+ - Needs method SyncProcessData
======================================================================
diff --git a/src/map.cpp b/src/map.cpp
index adf3f5f8e..7c0d19dbb 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -2309,10 +2309,8 @@ MapChunk* ServerMap::generateChunkRaw(v2s16 chunkpos,
Randomize some parameters
*/
- // 0-100
- // Usually little, sometimes huge
- //u32 stone_obstacle_amount = myrand_range(0, myrand_range(0, 100));
- u32 stone_obstacle_amount = myrand_range(0, myrand_range(20, 100));
+ u32 stone_obstacle_amount =
+ myrand_range(0, myrand_range(20, myrand_range(80,150)));
/*
Loop this part, it will make stuff look older and newer nicely
@@ -2492,14 +2490,18 @@ MapChunk* ServerMap::generateChunkRaw(v2s16 chunkpos,
s16 route_y_min = 0;
//s16 route_y_max = ar.Y-1;
- s16 route_y_max = stone_surface_max_y - of.Y;
+ s16 route_y_max = -of.Y + stone_surface_max_y + max_tunnel_diameter/2;
+ route_y_max = rangelim(route_y_max, 0, ar.Y-1);
if(bruise_surface)
{
/*// Minimum is at y=0
route_y_min = -of.Y - 0;*/
// Minimum is at y=max_tunnel_diameter/4
- route_y_min = -of.Y + max_tunnel_diameter/4;
+ //route_y_min = -of.Y + max_tunnel_diameter/4;
+ //s16 min = -of.Y + max_tunnel_diameter/4;
+ s16 min = -of.Y + 0;
+ route_y_min = myrand_range(min, min + max_tunnel_diameter);
route_y_min = rangelim(route_y_min, 0, route_y_max);
}