diff options
Diffstat (limited to 'game/client/factory.cc')
| -rw-r--r-- | game/client/factory.cc | 7 |
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); |
