summaryrefslogtreecommitdiffstats
path: root/game/shared/world/feature.cc
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-09-12 14:09:34 +0500
committeruntodesu <kirill@untode.su>2025-09-12 14:09:34 +0500
commit73cbcdd6e8c849e32abbf9757e603e6a6654e870 (patch)
tree136e1aef82a25c31552b8990952a7607cfd4708e /game/shared/world/feature.cc
parente9076f22fe2a49d1cd8933e54b7b00c5dd943269 (diff)
downloadvoxelius-73cbcdd6e8c849e32abbf9757e603e6a6654e870.tar.bz2
voxelius-73cbcdd6e8c849e32abbf9757e603e6a6654e870.zip
Metaitems
Diffstat (limited to 'game/shared/world/feature.cc')
-rw-r--r--game/shared/world/feature.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/game/shared/world/feature.cc b/game/shared/world/feature.cc
index e704ced..8fe95f1 100644
--- a/game/shared/world/feature.cc
+++ b/game/shared/world/feature.cc
@@ -69,12 +69,7 @@ void world::Feature::place(const voxel_pos& vpos, const chunk_pos& cpos, VoxelSt
continue;
}
- if(voxel == nullptr) {
- voxels[it_index] = NULL_VOXEL_ID;
- }
- else {
- voxels[it_index] = voxel->get_id();
- }
+ voxels[it_index] = voxel ? voxel->get_id() : NULL_VOXEL_ID;
}
}
}