Don't clamp "zoom" command, we already clamp in ChangeZoom

Thanks to chillerdragon for noticing
This commit is contained in:
Dennis Felsing 2022-01-26 12:54:16 +01:00
parent 590f29944c
commit 0374ddac72

View file

@ -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<float>(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)