summaryrefslogtreecommitdiff
path: root/src/mapgen_valleys.h
diff options
context:
space:
mode:
authorDuane Robertson <duane@duanerobertson.com>2016-01-16 03:53:02 -0600
committerparamat <mat.gregory@virginmedia.com>2016-01-16 13:05:03 +0000
commit752d8202061b1092daacb1f7056ace4d5aabef01 (patch)
treef7472ce474df1a00bbb2575cd79f9d525412e879 /src/mapgen_valleys.h
parenta58c0f458d336fdab59737c754661e4f16818d99 (diff)
downloadminetest-752d8202061b1092daacb1f7056ace4d5aabef01.tar.gz
minetest-752d8202061b1092daacb1f7056ace4d5aabef01.tar.bz2
minetest-752d8202061b1092daacb1f7056ace4d5aabef01.zip
Prevent spawning in rivers with valleys mapgen. Remove unecessary whitespace.
Diffstat (limited to 'src/mapgen_valleys.h')
-rw-r--r--src/mapgen_valleys.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mapgen_valleys.h b/src/mapgen_valleys.h
index 9c08b16d1..5fd549096 100644
--- a/src/mapgen_valleys.h
+++ b/src/mapgen_valleys.h
@@ -81,15 +81,15 @@ struct MapgenValleysParams : public MapgenSpecificParams {
};
struct TerrainNoise {
- s16 x;
- s16 z;
- float terrain_height;
- float *rivers;
- float *valley;
- float valley_profile;
- float *slope;
- float inter_valley_fill;
- float cliffs;
+ s16 x;
+ s16 z;
+ float terrain_height;
+ float *rivers;
+ float *valley;
+ float valley_profile;
+ float *slope;
+ float inter_valley_fill;
+ float cliffs;
float corr;
};
@@ -100,7 +100,7 @@ public:
~MapgenValleys();
virtual void makeChunk(BlockMakeData *data);
- inline int getGroundLevelAtPoint(v2s16 p);
+ int getGroundLevelAtPoint(v2s16 p);
private:
EmergeManager *m_emerge;