From 6dc5194895b6bd61d19bf5c95021471784084325 Mon Sep 17 00:00:00 2001 From: untodesu Date: Tue, 1 Jul 2025 03:23:05 +0500 Subject: I forgot to set these to true in .clang-format https://files.catbox.moe/909rig.gif --- game/shared/world/dimension.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'game/shared/world/dimension.cc') diff --git a/game/shared/world/dimension.cc b/game/shared/world/dimension.cc index b5cedad..3389917 100644 --- a/game/shared/world/dimension.cc +++ b/game/shared/world/dimension.cc @@ -61,7 +61,8 @@ world::Chunk* world::Dimension::find_chunk(entt::entity entity) const { if(chunks.valid(entity)) { return chunks.get(entity).chunk; - } else { + } + else { return nullptr; } } @@ -72,7 +73,8 @@ world::Chunk* world::Dimension::find_chunk(const chunk_pos& cpos) const if(it != m_chunkmap.cend()) { return it->second; - } else { + } + else { return nullptr; } } @@ -112,7 +114,8 @@ voxel_id world::Dimension::get_voxel(const voxel_pos& vpos) const if(auto chunk = find_chunk(cpos)) { return chunk->get_voxel(lpos); - } else { + } + else { return NULL_VOXEL_ID; } } -- cgit