mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fixed, now my pc is alive xd
This commit is contained in:
parent
0570465274
commit
4e1fbd71c8
|
@ -10,7 +10,6 @@
|
|||
|
||||
#include "camera.h"
|
||||
#include "controls.h"
|
||||
|
||||
#include <limits>
|
||||
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue