Fixed, now my pc is alive xd

This commit is contained in:
Samuele Radici 2023-08-17 00:32:44 +00:00
parent 0570465274
commit 4e1fbd71c8
3 changed files with 2 additions and 3 deletions

View file

@ -10,7 +10,6 @@
#include "camera.h"
#include "controls.h"
#include <limits>

View file

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

View file

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