diff options
| author | untodesu <kirill@untode.su> | 2025-06-25 00:44:36 +0500 |
|---|---|---|
| committer | untodesu <kirill@untode.su> | 2025-06-25 00:44:36 +0500 |
| commit | 88c01588aa0830e219eaa62588839e4d1e2883ce (patch) | |
| tree | 602bb27dd3399aab4aae8c19630e3b7a8dac824b /game/shared/transform.cc | |
| parent | 99cf6cca8dbbc1e563c10cf0167432d3d8af9783 (diff) | |
| download | voxelius-88c01588aa0830e219eaa62588839e4d1e2883ce.tar.bz2 voxelius-88c01588aa0830e219eaa62588839e4d1e2883ce.zip | |
Clang-format the entire source code
Diffstat (limited to 'game/shared/transform.cc')
| -rw-r--r-- | game/shared/transform.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/game/shared/transform.cc b/game/shared/transform.cc index 6dc6126..f4b661c 100644 --- a/game/shared/transform.cc +++ b/game/shared/transform.cc @@ -1,10 +1,11 @@ #include "shared/pch.hh" + #include "shared/transform.hh" #include "shared/const.hh" #include "shared/dimension.hh" -constexpr inline static void update_component(unsigned int dim, TransformComponent &component) +constexpr inline static void update_component(unsigned int dim, TransformComponent& component) { if(component.local[dim] >= CHUNK_SIZE) { component.local[dim] -= CHUNK_SIZE; @@ -19,7 +20,7 @@ constexpr inline static void update_component(unsigned int dim, TransformCompone } } -void TransformComponent::fixed_update(Dimension *dimension) +void TransformComponent::fixed_update(Dimension* dimension) { auto view = dimension->entities.view<TransformComponent>(); |
