From 4e1fbd71c8c2765777f664b54fa2e409a9fe55c2 Mon Sep 17 00:00:00 2001 From: Samuele Radici <68398653+k-i-o@users.noreply.github.com> Date: Thu, 17 Aug 2023 00:32:44 +0000 Subject: [PATCH] Fixed, now my pc is alive xd --- src/game/client/components/camera.cpp | 1 - src/game/client/components/camera.h | 2 +- src/game/client/gameclient.cpp | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/game/client/components/camera.cpp b/src/game/client/components/camera.cpp index 5bb311fe7..2a74b1b56 100644 --- a/src/game/client/components/camera.cpp +++ b/src/game/client/components/camera.cpp @@ -10,7 +10,6 @@ #include "camera.h" #include "controls.h" - #include diff --git a/src/game/client/components/camera.h b/src/game/client/components/camera.h index 0449ca673..ae8798d86 100644 --- a/src/game/client/components/camera.h +++ b/src/game/client/components/camera.h @@ -37,7 +37,7 @@ class CCamera : public CComponent float MaxZoomLevel(); public: - static constexpr const float ZoomStep = 0.866025f; + static constexpr float ZOOM_STEP = 0.866025f; vec2 m_Center; bool m_ZoomSet; diff --git a/src/game/client/gameclient.cpp b/src/game/client/gameclient.cpp index 2313d6727..19319b0de 100644 --- a/src/game/client/gameclient.cpp +++ b/src/game/client/gameclient.cpp @@ -641,7 +641,7 @@ void CGameClient::UpdatePositions() ResetMultiView(); else if(!m_Snap.m_SpecInfo.m_Active) { - m_Camera.SetZoom(std::pow(m_Camera.ZoomStep, g_Config.m_ClDefaultZoom - 10), g_Config.m_ClSmoothZoomTime); + m_Camera.SetZoom(std::pow(CCamera::ZOOM_STEP, g_Config.m_ClDefaultZoom - 10), g_Config.m_ClSmoothZoomTime); m_MultiViewPersonalZoom = 0; }