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; }