mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Prevent spawning in rivers with valleys mapgen. Remove unecessary whitespace.
This commit is contained in:
parent
a58c0f458d
commit
752d820206
2 changed files with 61 additions and 47 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue