| 5132 | } |
| 5133 | |
| 5134 | void CClient::GetSmoothTick(int *pSmoothTick, float *pSmoothIntraTick, float MixAmount) |
| 5135 | { |
| 5136 | int64_t GameTime = m_aGameTime[g_Config.m_ClDummy].Get(time_get()); |
| 5137 | int64_t PredTime = m_PredictedTime.Get(time_get()); |
| 5138 | int64_t SmoothTime = std::clamp(GameTime + (int64_t)(MixAmount * (PredTime - GameTime)), GameTime, PredTime); |
| 5139 | |
| 5140 | *pSmoothTick = (int)(SmoothTime * GameTickSpeed() / time_freq()) + 1; |
| 5141 | *pSmoothIntraTick = (SmoothTime - (*pSmoothTick - 1) * time_freq() / GameTickSpeed()) / (float)(time_freq() / GameTickSpeed()); |
| 5142 | } |
| 5143 | |
| 5144 | void CClient::AddWarning(const SWarning &Warning) |
| 5145 | { |
no test coverage detected