| 889 | } |
| 890 | |
| 891 | void CHalfLife2::ProcessDelayedKicks() |
| 892 | { |
| 893 | while (!m_DelayedKicks.empty()) |
| 894 | { |
| 895 | DelayedKickInfo info = m_DelayedKicks.first(); |
| 896 | m_DelayedKicks.pop(); |
| 897 | |
| 898 | CPlayer *player = g_Players.GetPlayerByIndex(info.client); |
| 899 | if (player == NULL || player->GetUserId() != info.userid) |
| 900 | { |
| 901 | continue; |
| 902 | } |
| 903 | |
| 904 | player->Kick(info.buffer); |
| 905 | } |
| 906 | } |
| 907 | |
| 908 | edict_t *CHalfLife2::EdictOfIndex(int index) |
| 909 | { |
no test coverage detected