mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Restore some lines to the state before working on smooth zoom
This commit is contained in:
parent
cdd715fd53
commit
9c3f8894b0
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue