From cbd823aa2154a956e7da4319eecbf7afc10441ae Mon Sep 17 00:00:00 2001 From: untodesu Date: Thu, 11 Sep 2025 15:47:37 +0500 Subject: Remove include guards --- game/shared/coord.hh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'game/shared/coord.hh') diff --git a/game/shared/coord.hh b/game/shared/coord.hh index 18d45b5..9d9be18 100644 --- a/game/shared/coord.hh +++ b/game/shared/coord.hh @@ -1,5 +1,3 @@ -#ifndef SHARED_COORD_HH -#define SHARED_COORD_HH 1 #pragma once #include "shared/const.hh" @@ -118,8 +116,8 @@ inline constexpr glm::fvec3 coord::to_relative(const chunk_pos& pivot_cpos, cons }; } -inline constexpr glm::fvec3 coord::to_relative( - const chunk_pos& pivot_cpos, const glm::fvec3& pivot_fvec, const chunk_pos& cpos, const glm::fvec3& fvec) +inline constexpr glm::fvec3 coord::to_relative(const chunk_pos& pivot_cpos, const glm::fvec3& pivot_fvec, const chunk_pos& cpos, + const glm::fvec3& fvec) { return glm::fvec3 { static_cast((cpos.x - pivot_cpos.x) << CHUNK_BITSHIFT) + (fvec.x - pivot_fvec.x), @@ -145,5 +143,3 @@ inline constexpr glm::fvec3 coord::to_fvec3(const chunk_pos& cpos, const glm::fv fpos.z + static_cast(cpos.z << CHUNK_BITSHIFT), }; } - -#endif // SHARED_COORD_HH -- cgit