Skip to content

Commit d786a27

Browse files
committedJul 4, 2015
Mgv7: Lower base of mountain generation to -112 and define constant
1 parent 64dc053 commit d786a27

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
 

‎src/mapgen_v7.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ void MapgenV7::calculateNoise()
363363
noise_ridge_uwater->perlinMap2D(x, z);
364364
}
365365

366-
if ((spflags & MGV7_MOUNTAINS) && node_max.Y >= 0) {
366+
if ((spflags & MGV7_MOUNTAINS) && node_max.Y >= MOUNTAIN_BASE) {
367367
noise_mountain->perlinMap3D(x, y, z);
368368
noise_mount_height->perlinMap2D(x, z);
369369
}
@@ -536,7 +536,7 @@ int MapgenV7::generateBaseTerrain()
536536

537537
int MapgenV7::generateMountainTerrain(int ymax)
538538
{
539-
if (node_max.Y < 0)
539+
if (node_max.Y < MOUNTAIN_BASE)
540540
return ymax;
541541

542542
MapNode n_stone(c_stone);

‎src/mapgen_v7.h

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
2222

2323
#include "mapgen.h"
2424

25+
#define MOUNTAIN_BASE -112
26+
2527
/////////////////// Mapgen V7 flags
2628
#define MGV7_MOUNTAINS 0x01
2729
#define MGV7_RIDGES 0x02

0 commit comments

Comments
 (0)
Please sign in to comment.