rust/hedgewars-server/src/server/handlers/common.rs
changeset 14800 2107fd023733
parent 14799 e41131607167
child 14801 da0cfeee9d96
equal deleted inserted replaced
14799:e41131607167 14800:2107fd023733
   534         response.add(Warning("The game is already in progress".to_string()).send_self());
   534         response.add(Warning("The game is already in progress".to_string()).send_self());
   535     } else {
   535     } else {
   536         room.start_round();
   536         room.start_round();
   537         for id in room_clients {
   537         for id in room_clients {
   538             let c = &mut server.clients[id];
   538             let c = &mut server.clients[id];
   539             c.set_is_in_game(false);
   539             c.set_is_in_game(true);
   540             c.team_indices = room.client_team_indices(c.id);
   540             c.team_indices = room.client_team_indices(c.id);
   541         }
   541         }
   542         response.add(RunGame.send_all().in_room(room.id));
   542         response.add(RunGame.send_all().in_room(room.id));
   543         response.add(
   543         response.add(
   544             ClientFlags(add_flags(&[Flags::InGame]), room_nicks)
   544             ClientFlags(add_flags(&[Flags::InGame]), room_nicks)