summaryrefslogtreecommitdiffstats
path: root/game/server/world
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-07-01 03:23:05 +0500
committeruntodesu <kirill@untode.su>2025-07-01 03:23:05 +0500
commit6dc5194895b6bd61d19bf5c95021471784084325 (patch)
tree705c35b3a671a09fc52b406dca81e7761729ded6 /game/server/world
parent44d91043f268d93dd08e99c5855bd29f85dd61a7 (diff)
downloadvoxelius-6dc5194895b6bd61d19bf5c95021471784084325.tar.bz2
voxelius-6dc5194895b6bd61d19bf5c95021471784084325.zip
I forgot to set these to true in .clang-format
https://files.catbox.moe/909rig.gif
Diffstat (limited to 'game/server/world')
-rw-r--r--game/server/world/overworld.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/game/server/world/overworld.cc b/game/server/world/overworld.cc
index 3949b77..ff0b6f7 100644
--- a/game/server/world/overworld.cc
+++ b/game/server/world/overworld.cc
@@ -296,7 +296,8 @@ void world::Overworld::generate_surface(const chunk_pos& cpos, VoxelStorage& vox
}
depth += 1U;
- } else {
+ }
+ else {
if(voxels[d_index] == NULL_VOXEL_ID) {
break;
}
@@ -308,7 +309,8 @@ void world::Overworld::generate_surface(const chunk_pos& cpos, VoxelStorage& vox
if(depth < 5U) {
if(depth == 0U) {
voxels[i] = game_voxels::grass;
- } else {
+ }
+ else {
voxels[i] = game_voxels::dirt;
}
}