| 209 | } |
| 210 | |
| 211 | void CServer::CClient::Reset() |
| 212 | { |
| 213 | // reset input |
| 214 | for(auto &Input : m_aInputs) |
| 215 | Input.m_GameTick = -1; |
| 216 | m_CurrentInput = 0; |
| 217 | mem_zero(&m_LastPreInput, sizeof(m_LastPreInput)); |
| 218 | mem_zero(&m_LatestInput, sizeof(m_LatestInput)); |
| 219 | |
| 220 | m_Snapshots.PurgeAll(); |
| 221 | m_LastAckedSnapshot = -1; |
| 222 | m_LastInputTick = -1; |
| 223 | m_SnapRate = CClient::SNAPRATE_INIT; |
| 224 | m_Score = -1; |
| 225 | m_NextMapChunk = 0; |
| 226 | m_Flags = 0; |
| 227 | m_RedirectDropTime = 0; |
| 228 | } |
| 229 | |
| 230 | CServer::CServer() |
| 231 | { |
no test coverage detected