diff --git a/src/game/client/components/camera.cpp b/src/game/client/components/camera.cpp index 17c91e753..a02c200eb 100644 --- a/src/game/client/components/camera.cpp +++ b/src/game/client/components/camera.cpp @@ -84,7 +84,7 @@ void CCamera::ConZoomPlus(IConsole::IResult *pResult, void *pUserData) CCamera *pSelf = (CCamera *)pUserData; CServerInfo Info; pSelf->Client()->GetServerInfo(&Info); - if(g_Config.m_ClDDRaceCheats == 1 && str_find_nocase(Info.m_aGameType, "race")) + if(pSelf->m_pClient->m_Snap.m_SpecInfo.m_Active || g_Config.m_ClDDRaceCheats == 1 && str_find_nocase(Info.m_aGameType, "race")) ((CCamera *)pUserData)->m_Zoom *= ZoomStep; } void CCamera::ConZoomMinus(IConsole::IResult *pResult, void *pUserData) @@ -92,7 +92,7 @@ void CCamera::ConZoomMinus(IConsole::IResult *pResult, void *pUserData) CCamera *pSelf = (CCamera *)pUserData; CServerInfo Info; pSelf->Client()->GetServerInfo(&Info); - if(g_Config.m_ClDDRaceCheats == 1 && str_find_nocase(Info.m_aGameType, "race")) + if(pSelf->m_pClient->m_Snap.m_SpecInfo.m_Active || g_Config.m_ClDDRaceCheats == 1 && str_find_nocase(Info.m_aGameType, "race")) ((CCamera *)pUserData)->m_Zoom *= 1/ZoomStep; } void CCamera::ConZoomReset(IConsole::IResult *pResult, void *pUserData)