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/client/camera.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'game/client/camera.cc') diff --git a/game/client/camera.cc b/game/client/camera.cc index 30ec581..51e85ff 100644 --- a/game/client/camera.cc +++ b/game/client/camera.cc @@ -1,4 +1,5 @@ #include "client/pch.hh" + #include "client/camera.hh" #include "core/angles.hh" @@ -37,7 +38,7 @@ static void reset_camera(void) // Gracefully contributed by PQCraft himself in 2024 // making PlatinumSrc and Voxelius kind of related to each other -static glm::fmat4x4 platinumsrc_viewmatrix(const glm::fvec3 &position, const glm::fvec3 &angles) +static glm::fmat4x4 platinumsrc_viewmatrix(const glm::fvec3& position, const glm::fvec3& angles) { glm::fvec3 forward, up; cxangles::vectors(angles, &forward, nullptr, &up); @@ -78,9 +79,9 @@ void camera::update(void) return; } - const auto &head = globals::dimension->entities.get(globals::player); - const auto &transform = globals::dimension->entities.get(globals::player); - const auto &velocity = globals::dimension->entities.get(globals::player); + const auto& head = globals::dimension->entities.get(globals::player); + const auto& transform = globals::dimension->entities.get(globals::player); + const auto& velocity = globals::dimension->entities.get(globals::player); camera::angles = transform.angles + head.angles; camera::position_chunk = transform.chunk; -- cgit