rust/hedgewars-server/src/server/handlers/inroom.rs
changeset 14810 18240b308505
parent 14809 6dea1ca64992
child 14811 e94fbf6cad2b
equal deleted inserted replaced
14809:6dea1ca64992 14810:18240b308505
   444             };
   444             };
   445 
   445 
   446             match error {
   446             match error {
   447                 None => {
   447                 None => {
   448                     let msg = voting_description(&kind);
   448                     let msg = voting_description(&kind);
   449                     let voting = Voting::new(kind, server.collect_room_clients(client_id));
   449                     let voting = Voting::new(kind, server.room_clients(client_id).collect());
   450                     let room = &mut server.rooms[room_id];
   450                     let room = &mut server.rooms[room_id];
   451                     room.voting = Some(voting);
   451                     room.voting = Some(voting);
   452                     response.add(server_chat(msg).send_all().in_room(room_id));
   452                     response.add(server_chat(msg).send_all().in_room(room_id));
   453                     super::common::submit_vote(
   453                     super::common::submit_vote(
   454                         server,
   454                         server,