store "reports out of sync errors" messages in server replays

This commit is contained in:
gfgtdf 2020-02-13 02:30:46 +01:00 committed by GitHub
parent 4bbfe77445
commit 6d851aaca4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1768,7 +1768,7 @@ void server::handle_player_in_game(socket_ptr socket, std::shared_ptr<simple_wml
if((*info)["type"] == "termination") {
g.set_termination_reason((*info)["condition"].to_string());
if((*info)["condition"].to_string() == "out of sync") {
g.send_server_message_to_all(player.name() + " reports out of sync errors.");
g.send_and_record_server_message(player.name() + " reports out of sync errors.");
if(user_handler_){
user_handler_->db_set_oos_flag(uuid_, g.id());
}