summaryrefslogtreecommitdiffstats
path: root/game/client/factory.cc
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-06-25 00:44:36 +0500
committeruntodesu <kirill@untode.su>2025-06-25 00:44:36 +0500
commit88c01588aa0830e219eaa62588839e4d1e2883ce (patch)
tree602bb27dd3399aab4aae8c19630e3b7a8dac824b /game/client/factory.cc
parent99cf6cca8dbbc1e563c10cf0167432d3d8af9783 (diff)
downloadvoxelius-88c01588aa0830e219eaa62588839e4d1e2883ce.tar.bz2
voxelius-88c01588aa0830e219eaa62588839e4d1e2883ce.zip
Clang-format the entire source code
Diffstat (limited to 'game/client/factory.cc')
-rw-r--r--game/client/factory.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/game/client/factory.cc b/game/client/factory.cc
index 5eca00c..4c1c24e 100644
--- a/game/client/factory.cc
+++ b/game/client/factory.cc
@@ -1,4 +1,5 @@
#include "client/pch.hh"
+
#include "client/factory.hh"
#include "shared/dimension.hh"
@@ -9,15 +10,15 @@
#include "client/globals.hh"
#include "client/sound_emitter.hh"
-void client_factory::create_player(Dimension *dimension, entt::entity entity)
+void client_factory::create_player(Dimension* dimension, entt::entity entity)
{
shared_factory::create_player(dimension, entity);
- const auto &head = dimension->entities.get<HeadComponent>(entity);
+ const auto& head = dimension->entities.get<HeadComponent>(entity);
dimension->entities.emplace_or_replace<HeadComponentIntr>(entity, head);
dimension->entities.emplace_or_replace<HeadComponentPrev>(entity, head);
- const auto &transform = dimension->entities.get<TransformComponent>(entity);
+ const auto& transform = dimension->entities.get<TransformComponent>(entity);
dimension->entities.emplace_or_replace<TransformComponentIntr>(entity, transform);
dimension->entities.emplace_or_replace<TransformComponentPrev>(entity, transform);