equal
deleted
inserted
replaced
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) |