Make zoom reset respect cl_default_zoom (fixes #2453)

This commit is contained in:
def 2020-07-07 18:02:21 +02:00
parent c6a0698805
commit f9d2c14ff6

View file

@ -166,5 +166,5 @@ void CCamera::ConZoomMinus(IConsole::IResult *pResult, void *pUserData)
}
void CCamera::ConZoomReset(IConsole::IResult *pResult, void *pUserData)
{
((CCamera *)pUserData)->ChangeZoom(1.0f);
((CCamera *)pUserData)->ChangeZoom(pow(ZoomStep, g_Config.m_ClDefaultZoom - 10));
}