From 88c01588aa0830e219eaa62588839e4d1e2883ce Mon Sep 17 00:00:00 2001 From: untodesu Date: Wed, 25 Jun 2025 00:44:36 +0500 Subject: Clang-format the entire source code --- game/shared/stasis.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'game/shared/stasis.cc') diff --git a/game/shared/stasis.cc b/game/shared/stasis.cc index 4e474af..462871d 100644 --- a/game/shared/stasis.cc +++ b/game/shared/stasis.cc @@ -1,16 +1,19 @@ #include "shared/pch.hh" + #include "shared/stasis.hh" #include "shared/dimension.hh" #include "shared/transform.hh" -void StasisComponent::fixed_update(Dimension *dimension) +void StasisComponent::fixed_update(Dimension* dimension) { auto view = dimension->entities.view(); for(auto [entity, transform] : view.each()) { - if(dimension->find_chunk(transform.chunk)) + if(dimension->find_chunk(transform.chunk)) { dimension->entities.remove(entity); - else dimension->entities.emplace_or_replace(entity); + } else { + dimension->entities.emplace_or_replace(entity); + } } } -- cgit