send a server message when clients report oos

This commit is contained in:
Gunter Labes 2009-10-01 19:42:26 +00:00
parent b9a000a583
commit 9121eb6fbe

View file

@ -2255,6 +2255,9 @@ void server::process_data_game(const network::connection sock,
if (!g->is_player(sock)) return;
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((pl->second.name() + " reports out of sync errors.").c_str());
}
}
return;
} else if (data.child("turn")) {