From 0374ddac72181ca17baff965e53a94c46168b0b4 Mon Sep 17 00:00:00 2001 From: Dennis Felsing Date: Wed, 26 Jan 2022 12:54:16 +0100 Subject: [PATCH] Don't clamp "zoom" command, we already clamp in ChangeZoom Thanks to chillerdragon for noticing --- src/game/client/components/camera.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/client/components/camera.cpp b/src/game/client/components/camera.cpp index 67ae0123c..4e55d9721 100644 --- a/src/game/client/components/camera.cpp +++ b/src/game/client/components/camera.cpp @@ -211,7 +211,7 @@ void CCamera::ConZoomMinus(IConsole::IResult *pResult, void *pUserData) } void CCamera::ConZoom(IConsole::IResult *pResult, void *pUserData) { - float TargetLevel = pResult->NumArguments() ? clamp(pResult->GetFloat(0), 0, 20) : g_Config.m_ClDefaultZoom; + float TargetLevel = pResult->NumArguments() ? pResult->GetFloat(0) : g_Config.m_ClDefaultZoom; ((CCamera *)pUserData)->ChangeZoom(pow(ZoomStep, TargetLevel - 10)); } void CCamera::ConSetView(IConsole::IResult *pResult, void *pUserData)