Restore some lines to the state before working on smooth zoom

This commit is contained in:
heinrich5991 2020-07-02 10:53:20 +02:00
parent cdd715fd53
commit 9c3f8894b0

View file

@ -4233,8 +4233,6 @@ void CClient::GetSmoothTick(int *pSmoothTick, float *pSmoothIntraTick, float Mix
int64 PredTime = m_PredictedTime.Get(time_get());
int64 SmoothTime = clamp(GameTime + (int64)(MixAmount * (PredTime - GameTime)), GameTime, PredTime);
if(pSmoothTick)
*pSmoothTick = (int)(SmoothTime*50/time_freq())+1;
if(pSmoothIntraTick)
*pSmoothIntraTick = (SmoothTime - (*pSmoothTick-1)*time_freq()/50) / (float)(time_freq()/50);
*pSmoothTick = (int)(SmoothTime*50/time_freq())+1;
*pSmoothIntraTick = (SmoothTime - (*pSmoothTick-1)*time_freq()/50) / (float)(time_freq()/50);
}