Send modification addon_id when fetching game info from server

This commit is contained in:
Charles Dang 2016-10-01 05:11:50 +11:00
parent 39c99d076a
commit 3e45f25d13

View file

@ -1320,6 +1320,7 @@ void server::handle_player_in_game(socket_ptr socket, std::shared_ptr<simple_wml
for(const simple_wml::node* m : mlist) {
desc.add_child_at("modification", 0);
desc.child("modification")->set_attr_dup("id", m->attr("id"));
desc.child("modification")->set_attr_dup("addon_id", m->attr("addon_id"));
if (m->attr("require_modification").to_bool(false))
desc.child("modification")->set_attr("require_modification", "yes");
}