aboutsummaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-04-27 00:14:16 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-04-27 00:14:16 +0300
commit8377b5f2a6f310d6b7bcd96223b424b87392102c (patch)
tree36bd3557c336a06ccbb44966086ac9fd1964da9f /src/map.cpp
parent36d299ce5849157ecbd25d8a1e77023fc15e7bba (diff)
downloadminetest-8377b5f2a6f310d6b7bcd96223b424b87392102c.tar.gz
minetest-8377b5f2a6f310d6b7bcd96223b424b87392102c.tar.bz2
minetest-8377b5f2a6f310d6b7bcd96223b424b87392102c.zip
Changed a bit of the code that is and should still be commented out.
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/map.cpp b/src/map.cpp
index e8bd7bf6f..e81ddb3af 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -2244,7 +2244,7 @@ void makeChunk(ChunkMakeData *data)
#if 0
NoiseBuffer noisebuf1;
- NoiseBuffer noisebuf2;
+ //NoiseBuffer noisebuf2;
{
v3f minpos_f(
data->sectorpos_bigbase.X*MAP_BLOCKSIZE,
@@ -2260,18 +2260,18 @@ void makeChunk(ChunkMakeData *data)
TimeTaker timer("noisebuf.create");
- /*noisebuf.create(data->seed+25104, 6, 0.60, 200.0,
+ noisebuf1.create(data->seed+25104, 6, 0.60, 200.0,
minpos_f.X, minpos_f.Y, minpos_f.Z,
maxpos_f.X, maxpos_f.Y, maxpos_f.Z,
- samplelength_f.X, samplelength_f.Y, samplelength_f.Z);*/
- noisebuf1.create(data->seed+25104, 3, 0.60, 25.0,
+ samplelength_f.X, samplelength_f.Y, samplelength_f.Z);
+ /*noisebuf1.create(data->seed+25104, 3, 0.60, 25.0,
minpos_f.X, minpos_f.Y, minpos_f.Z,
maxpos_f.X, maxpos_f.Y, maxpos_f.Z,
samplelength_f.X, samplelength_f.Y, samplelength_f.Z);
noisebuf2.create(data->seed+25105, 4, 0.50, 200.0,
minpos_f.X, minpos_f.Y, minpos_f.Z,
maxpos_f.X, maxpos_f.Y, maxpos_f.Z,
- samplelength_f.X, samplelength_f.Y, samplelength_f.Z);
+ samplelength_f.X, samplelength_f.Y, samplelength_f.Z);*/
}
for(s16 x=0; x<data->sectorpos_bigbase_size*MAP_BLOCKSIZE; x++)
@@ -2315,12 +2315,12 @@ void makeChunk(ChunkMakeData *data)
0.5+(float)y/100.0,
0.5+(float)p2d.Y/100.0,
data->seed+123, 5, 0.5);*/
- //double noiseval = 64.0 * noisebuf1.get(p2d.X, y, p2d.Y);
- double noiseval = 30.0 * noisebuf1.get(p2d.X, y, p2d.Y);
- noiseval *= MYMAX(0, -0.2 + noisebuf2.get(p2d.X, y, p2d.Y));
+ double noiseval = 64.0 * noisebuf1.get(p2d.X, y, p2d.Y);
+ /*double noiseval = 30.0 * noisebuf1.get(p2d.X, y, p2d.Y);
+ noiseval *= MYMAX(0, -0.2 + noisebuf2.get(p2d.X, y, p2d.Y));*/
- if(y < surface_y + noiseval)
- //if(noiseval > 0)
+ //if(y < surface_y + noiseval)
+ if(noiseval > 0)
//if(noiseval > y)
data->vmanip.m_data[i].d = CONTENT_STONE;