INNER CODE UNIT · C++
itr
trillek-team/tec · client/client-game-state-queue.cpp:165
itr = this->predictions.erase(itr);
continue;
}
++itr;
}
// debugging stats, also used by reconciliation
stats.client_position = position_diff;
stats.client_velocity = velocity_diff;
}
/** \brief Explicitly update the current prediction
*/
void ClientGameStateQueue::UpdatePredictions(GameState& new_state) {
if (this->client_id == 0) {
return;
}
this->stats.current_command_id = this->command_id;
GameState predict_state;