diff options
| author | untodesu <kirill@untode.su> | 2025-03-16 20:46:45 +0500 |
|---|---|---|
| committer | untodesu <kirill@untode.su> | 2025-03-16 20:46:45 +0500 |
| commit | fd50a3687d8859764aa6c038545e93fa0ce7bd46 (patch) | |
| tree | 1dcb0a1a03a9cf1502c8758d5f91618908e00671 /game | |
| parent | 800cb5a2e813a44ea698c812614252fc48dcc432 (diff) | |
| download | voxelius-fd50a3687d8859764aa6c038545e93fa0ce7bd46.tar.bz2 voxelius-fd50a3687d8859764aa6c038545e93fa0ce7bd46.zip | |
Micro-fixes of generator
Diffstat (limited to 'game')
| -rw-r--r-- | game/server/overworld.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/game/server/overworld.cc b/game/server/overworld.cc index 16a3120..46ee466 100644 --- a/game/server/overworld.cc +++ b/game/server/overworld.cc @@ -278,7 +278,7 @@ void Overworld::generate_surface(const chunk_pos &cpos, VoxelStorage &voxels) } } - if(depth < (2U + (metadata.entropy[hdx] % 5U))) { + if(depth < 5U) { if(depth == 0U) voxels[i] = game_voxels::grass; else voxels[i] = game_voxels::dirt; @@ -349,7 +349,5 @@ void Overworld::generate_features(const chunk_pos &cpos, VoxelStorage &voxels) m_feat_tree.place(vpos + DIR_UP<voxel_pos::value_type>, cpos, voxels); } - } - } |
